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
3answers
790 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
36 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
62 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
387 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
81 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
33 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
1k 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
124 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
82 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
48 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
25 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
27 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
48 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
24 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
40 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
60 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
63 views

How can I locate the single buddypress forum post template?

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
164 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
58 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
46 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
44 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
15 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
62 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
3k 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
197 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 ...
0
votes
1answer
56 views

page-name.php doesn't execute on custom template

This one has me stumped. I have a page named 'Login.' I also have a file uploaded in my theme directory called 'page-login.php'. If I select a default theme template, page-login.php executes like it ...
0
votes
1answer
495 views

Display custom widget value in header.php

I am using the code below for a custom widget. I have added some fields in the widget like: Title, Name and a checkbox. Now everything is fine but I want to show those values in header.php. Any idea ...
0
votes
0answers
34 views

How add / edit dynamically same meta boxes in CPT?

What I would like to do? :) I am sorry, but I am not native English, and I a newbie in WP. I don't know how I can search on it. So I created CPT (this is my first wp plugin). In CPT I only need the ...
0
votes
1answer
41 views

Wordpress sites translate dynamically generated Homepages

So I'm having trouble finding a way to translate the homepage content on a few pages I manage. They can be found here: KorgCanada.com (Theme is Simplecorp, and the support forum offers no help) ...
-2
votes
1answer
40 views

Custom template pagination

I have a custom post type "news". I created the page "News" with the id 55 and a custom template file. I want to implement pagination. The problem is when I access the news with a page number set I ...
0
votes
1answer
44 views

Archive-custome_post.php template not working

I have a site on WordPress 3.6.1 and I created a custom post type for recipes with the code: add_action( 'init', 'register_cpt_my_recipes' ); function register_cpt_my_recipes() { $args = ...
0
votes
1answer
157 views

Custom Archive with Content for Custom Post Type

I'm doing a corporate site migration into Wordpress, and need an extremely custom archive page for a custom post type. I know all about the archive-{post type}.php thing, but it needs to be more ...
0
votes
1answer
27 views

how bbPress and buddypress add their own page templates to the page template drop down on the page editing screen

Im writing a plugin and need to know how to add a page template in the edit page screen from within a plugin. bbPress and Buddypress both add page templates to this drop down and I can't figure out ...
0
votes
0answers
21 views

WooCommerce using wrong template - how do I change it?

I use the Responsive Child Theme - and its parent - for my website. It seems that WooCommerce is using the content with sidebar template for the store and product pages. I think it will look better ...
0
votes
1answer
199 views

how to access the $query variable inside taxonomy-xxx.php template file?

In my custom template files, I create query in the following way: <?php $query = new WP_Query(array('post_type' => 'aya-bi-aya','author' => $current_user->ID,'paged' => $paged, ...
0
votes
0answers
26 views

create page for listing custom post type comments

I have a custom post type and I want to create a page which will automatically list all the comments posted under my single-{my-post-type}.php. What is the best practice for creating something like ? ...
0
votes
1answer
67 views

Custom templates folder

I created a custom folder ("/templates") and I put all of my template files in the folder. instead of root ("/wp-content/themes/my-theme/"). It works fine. Do I have to add some function for ...
6
votes
1answer
141 views

How to redirect to post if search results only returns one post

I want to send visitors to my search.php after a search to display list of posts. If there is only one search result, user can directlyto the post in question(something like GOOGLE's I am Feeling ...
0
votes
1answer
69 views

Cannot Edit Custom Template In WP Editor

Following several well-written articles on creating a custom page template, I made one for my WordPress site hosted at wpengine. The good news: My custom template works just fine. I can add pages ...
0
votes
0answers
31 views

Copied wordpress template page not working [closed]

I have a WordPress theme with multiply template pages Default, Blog, Contact & Portfolio. I have copied the Portfolio page and edited to create a new page template I have changed the Template ...
0
votes
1answer
1k views

How to add a new product type on woocommerce product types? [closed]

I want to add a new custom "product type" to woocommerce plugin: Tried to duplicate one of currently exist product type files (woocommerce template structure) as a new file (file name and inside ...
0
votes
1answer
42 views

pass html code to worpdress

I'm starting with wordpress and I have some doubts. I created a proprietary design from requirements that had. This design is made with html and bootstrap. Now I want to start using wordpress step ...