Within the context of WordPress Theme-ing, the term 'template' refers to PHP files used to display content.

learn more… | top users | synonyms (1)

0
votes
1answer
31 views

Template setting is not saving in wordpress

I'm using a child theme. I want to override a template of base theme. I created, articles-page.php which starts with: <?php /* Template Name: Articles */ While creating a page in Wordpress I can ...
0
votes
1answer
56 views

Shortcode to output get_header not working

I'm trying to create a shortcode that will output the contents of one of my template header files. I created the shortcode in my functions.php file function zoo_header(){ return ...
0
votes
2answers
95 views

Display random page

I'd like to display a random page that: has a parent page of X or Y or Z, etc. excludes pages with the title "Contributors" The following code works (though without the specific conditions above), ...
0
votes
1answer
309 views

reCAPTCHA on page template without plugin

I have a template for contact us page which includes a small form with few text fields. I want to add Recaptcha to avoid spams. I already use WP-recaptch plugin which only works for default ...
0
votes
0answers
67 views

Problem with the loop?

I'm customizing my Twenty Twelve theme to show a single posts from two separate categories on my home page using a custom template. Here's my code : <div> <?php $catquery = new ...
1
vote
1answer
86 views

home.php not loading

I have an issue where home.php won't load, so wordpress insists of using index.php to display blog posts. I created home.php by copying the entire content of index.php into home.php. Is there a way to ...
0
votes
0answers
39 views

How to install a wordpress website template on an existing website?

I just downloaded a template called Senna for my website. It's a responsive wordpress template, and I don't have knowledge of how to use wordpress templates. My currently website is html based on ...
1
vote
0answers
306 views

Override a theme's WooCommerce template files with plugin [closed]

A plugin I'm working on, has it's own WooCommerce template files which override the default WooCommerce templates. I know I could make a child theme with a woocommerce folder but I'm trying to make ...
0
votes
3answers
108 views

Having some trouble properly displaying Custom Post Types in templates

I have a child theme of Twenty Thirteen and I've setup Custom Post Types for several items. They are showing up in the Dashboard, I can create the Custom Posts and they show up in various categories ...
0
votes
1answer
120 views

How to create a WP theme that use BootStrap? [closed]

I am pretty new in WordPress and totally new in BootStrap development (I have beginning to study BootStrap yesterday) and I have the following doubt about how create a custom WP template that use ...
1
vote
2answers
164 views

Filter to change the content of 404 page

I have created custom rewrite rules. These rules now go to 404 page as expected. I can use action hook template_redirect to change the template matching query_var. But I don't want to create separate ...
-1
votes
0answers
128 views

Jetpack Infinite Scroll on archive page

I know, lots of questions have been asked on this topic before, here and elsewhere — but I've spent the entire day working on this issue and scouring the Web for tips on how to use Jetpack's "Infinite ...
0
votes
2answers
133 views

Can I have both front-page.php and index.php?

I've made a custom front-page.php which includes "the loop" and it works great. I would also like to have a separate page which is the regular old posts page you get from index.php. How do I make a ...
0
votes
1answer
22 views

How do I show content from a plugin using the template the site is currently working with?

I am trying to extend the first serious plugin that I am building. I'd like to be able to use it with different sites/templates. At the moment I designed a custom page that I included with the ...
0
votes
2answers
40 views

Apply custom category template to subcategories

Hello on my wordpress site I have a custom template for category A with slug (cat-a). I created a category-cat-a.php file to give this category a custom layout and this works without a problem. I am ...
0
votes
1answer
105 views

How to render the single post template with the post name?

I'm calling pages with Ajax and I have this code in functions.php to determine which page is called and then, render the corresponding template: function ajax_callback() { if( isset( ...
0
votes
0answers
60 views

How do I create a custom archive page that my client can edit?

I've created a custom post type. I have set has_archive as true and understand I could also set it to has_archive => 'ctp' I also know that if I name a template file archive-cpt.php Wordpress will ...
0
votes
3answers
927 views

Woocommerce - Change Variable Product Add to Cart to behave like external product using Custom Field (link) [closed]

I am importing affiliate products via XML into Woocommerce. Due to products having variations if I use the External/Affiliate product type I get repetition of product on my front end (eg. same product ...
0
votes
1answer
37 views

What is the template file for topic layouts in bbPress?

The theme I'm using edits the Topic layout in such a way that the role is not being displayed anymore. I'd like to revert those changes in the theme editor, but I can't seem to find the template file ...
0
votes
0answers
67 views

how to assign template from plugin directory to page in wordpress?

I have created one plugin as Store Locator, now i want to create page in wordpress and assign it template on activation of the plugin. the Code is like as follows : $plugin_url = plugins_url('', ...
3
votes
2answers
100 views

When is it appropriate to put functions on page template vs. functions.php?

I'd like to improve my code and on a current theme, I've extended Wordpress with custom post types, metadata, customized user authentication, and a number of other items. Some of these functions ...
0
votes
1answer
476 views

Using Templates with Custom Post Type UI

I'm using this nifty little plugin called Custom Post Type UI to add custom post types to my WordPress site and am having a little trouble working out the best way to apply a page template to my ...
0
votes
1answer
25 views

Displaying year once in category.php [duplicate]

I want to be able to make my category.php display like this: 2013 Title 3 Title 2 Title 1 2012 Title 3 Title 2 Title 1 It's already been done for displaying ALL posts but how do I get it to ...
0
votes
2answers
88 views

taxonomy_template filter do not loads custom taxonomy template properly

I'm using taxonomy_template filter in my plugin to load a template file for custom user taxonomies. This is the code I'm using add_filter( 'taxonomy_template', 'get_custom_taxonomy_template' ); ...
0
votes
2answers
36 views

Unable to paginate a custom page query

I have this code on a page called Categories. <?php /* Template Name: Categories */ get_header(); ?> <section id="primary" class="content-area"> <main id="main" ...
1
vote
2answers
2k views

NextGen Gallery template cache

I've implemented a custom Isotope template for the NextGen Gallery plugin, and I've made changes and bug fixes to the template, but when I refresh the page the template changes have not taken effect. ...
0
votes
1answer
143 views

Sidebar on single.php not showing up

So, my sidebar is working just fine on my blog page: beta.cleantelligent.com/blog However, when you click a single post, I'd like that same sidebar to show up. I am assuming this would be under ...
-1
votes
1answer
37 views

Read more button not working

I want the "read more" button to appear to truncate the blog posts. I tried using the button insert shortcode < !--more-->", but it's not showing up. I've tried everything I know how... Can ...
0
votes
1answer
22 views

Styling own template

I have an own template here where the sidebar looks different than the others: the sidebar is BELOW right the main content and not on the side. My code: <div id="sidebar"><?php echo ...
1
vote
1answer
89 views

Assign single template to multiple custom post types?

I have a number of custom post types that I would like to display with the same template which I have created initially as single-photography.php in my theme. Is there any way to assign this template ...
0
votes
1answer
50 views

WP not recognizing custom post type / template

I've created a custom post type: $args = array( 'labels' => array( 'name' => __( 'Prosjekter' ), 'singular_name' => __( 'Prosjekt' ), 'add_new' => __('Nytt ...
0
votes
1answer
27 views

Custom Taxonomy Template Variables Available?

I have a custom Taxonomy sports and want to edit the front-end display. I have got taxonomy-sports.php and used this code to get the data on the taxonomy, but I feel like it should already be ...
0
votes
1answer
28 views

Same template for all the terms of a taxonomy

My problem is the following. I have a custom post type called "photography" which contains a taxonomy called "photographyCategories", which contains several terms : "outside", "inside", "portrait"... ...
0
votes
0answers
53 views

Read More Button does not display

I have read through every existing post on this topic and they are all way too technical for me and I think my problem may be different anyway. So, like many others, I need to truncate my blog posts ...
1
vote
1answer
20 views

LaTeX for WordPress strips codes in loop

Installed LaTeX for WordPress and added post: Some text $$\alpha+\beta\geq\gamma$$ other text. I see that equation in post page, but it stripped in loop. How can I see equation in loop too?
0
votes
2answers
82 views

Including template pages within another template?

I've created a vertical page template which displays stacked sections (which are simply the content from other wordpress pages). I am having problems displaying the contents of pages which are ...
0
votes
1answer
26 views

Is template name always same as directory name?

When creating child theme, I must write like this. /* Theme Name: 2012 Child Template: twentytwelve */ Is that Template name is always same as directory name? Or is it defined somewhere else?
0
votes
0answers
45 views

Is including the loop necessary for page.php?

QUESTION: Is it necessary to include the wordpress loop in page.php? If it is not necessary, why do many themes (including the wordpress 2013 default theme) include it? I noticed this discussion on ...
0
votes
0answers
64 views

How to arrange different post categories in template

I'm playing with WordPress for sometime. In my website, there will be 3 possible categories for posts, like: 'offer', 'news' and 'about' (each category with individual content). My attempt is to ...
0
votes
1answer
66 views

How can I locate the single buddypress forum post template? [closed]

I have been trying for ages to locate the template that shows a single forum post template and I cannot find it. Does anyone know where this is located? Thanks
0
votes
2answers
196 views

Rewrite rule shows 404 page

I am new to Wordpress so I don't really know how the rewrite rules should look like. My problem is that I have a custom template in my theme called portfolio-inner.php My rule looks something like ...
0
votes
1answer
61 views

Use different archive template for plugin

In my blog, I'm using a plugin for an encyclopedia. Unfortunately, the plugin uses the archive template from my blog. How can I use a different page / template for the encyclopedia? Here is the ...
0
votes
0answers
47 views

Migrating a taxonomy's tags to the native category

So, I've inherited a website that uses a custom taxonomy for no real reason, leaving the native 'category' taxonomy unused. As the site is undergoing a redesign, I'm going to want to use some new ...
-1
votes
1answer
1k views

Woocommerce Show Single Product on Homepage

I am currently learning PHP & how to customize Wordpress. I have a shop that I set up on Wordpress using the Woocommerce plugin. The shop holds only a single item. Since I only have 1 item to ...
0
votes
2answers
47 views

Wordpress theme & site not loading after moving files

I was recently created a custom application for wordpress. So while doing so in my file manager (I use the one provided by godaddy(my webhost)), I moved all the files from the [DOCUMENT_ROOT] ... the ...
0
votes
1answer
16 views

One category not displaying template updates

I've tried refreshing, clearing the cache, opening in a new browser, renaming it from index to category.php-- ALL but one category display the correct template. I'm beyond stumped. One clue is that ...
1
vote
1answer
66 views

How to hook up search results page to a back-end page?

On my site, editors can upload "banner" images to every page on the site. However, I'm having trouble figuring out how to link the search results page to a back-end page (ie the page that appears at ...
0
votes
1answer
4k views

How to get current post id of a custom post type in a loop using template singel-{custom type}.php?

I have a custom post type template where am looping through all post. what i am trying is when i go to my custom post page i want to get the current post id in the loop. So i tried to check if the ...
0
votes
0answers
16 views

Pagination on Single page doesnt work [duplicate]

I am trying to have a list of other/previous posts with pagination on single page under the main post, But the below code doesn't work. Can someone point out where am I getting wrong here? <div ...
0
votes
2answers
220 views

Conditional config WP_HOME/WP_SITEURL does not update bloginfo('template_url')?

The scenario: This question relates to Wordpress theme development on a local environment via MAMP. In order to enable mobile device testing via xip.io, I have modified my local Wordpress ...