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

learn more… | top users | synonyms (1)

2
votes
1answer
74 views

Help with CPT template pagination

i created a themes CPT using the following code function pp_themes_post_type() { $args = array( 'public' => true, 'label' => 'ProfilePress Themes', ...
2
votes
1answer
88 views

Creating a template using a specific slug name, for a page with a parent page

I have always preffered to create layout templates for specific pages by creating a filename the same as the slug. So for example: Page Title: Contact Us Page Slug: contact-us Filename of template ...
2
votes
1answer
2k views

Shared Content but “Updatable” Through the Main Site

I have been doing quite a lot of research the past week, and have not been able to find a solid answer that fixes my problem. So, I decided to come here to ask to see if anyone knows of how to help ...
2
votes
1answer
92 views

Strange Behaviour with is_home()

I'm having an odd issue, although I can understand why it works like this I do need to find a way around it. I have used the the request filter to modify the query for the home/index page to select ...
1
vote
1answer
22 views

How to create new post content templates for my users?

I admin a wordpress site for my kids primary school. At the number of editors/contributors is small, but we'd like to expand it. To simplify the uptake for some of the office staff I'd like to have ...
1
vote
1answer
43 views

Filter widget outputs

I've been trying to find a good solution for my problem, but I can't seem to find anything on this topic at all. I've got a custom sidebar, created by using register_sidebar and I've used wordpress's ...
1
vote
1answer
191 views

Override mini-cart.php from plugin

(Its not the cache thing) Im creating a plugin that among other things modifies woocommerce template files. Before i placed woocommerce overrides in child theme. But i want to move it to the plugin to ...
1
vote
1answer
102 views

Load specific page template based on URI

I have a page template that I want to load, when ever my $_SERVER['REQUEST_URI'] is like this, www.site.com/link/147 where the number 147 will be variable. i.e. I would like a call a page template, ...
1
vote
1answer
30 views

New custom nev not working

I am suffreing from an issue from last few days. I have to create a custon nev calls ribbons, that will have some custom functionlity but at the starting steps I am not able to create the nev pages. ...
1
vote
1answer
547 views

Cannot edit style.css from admin panel, because the template is looking for style.min.css

I am trying to edit the style.css file for a Wordpress theme, however the changes I make (via admin or ftp) are not reflected on the site because that is using style.min.css. It is very cumbersome ...
1
vote
1answer
99 views

Can't format content of Rich Text Editor in Template

I use following functions to add a new rich text editor in admin . add_action( 'add_meta_boxes', 'adding_new_metaabox' ); function adding_new_metaabox() { ...
1
vote
1answer
85 views

How WordPress is able to change locale without using setlocale

In my plugin I print out the current locales via $originalLocales = explode(";", setlocale(LC_ALL, 0)); var_export($originalLocales);die; Obviously the result is same as the WPLANGdefined. ...
1
vote
1answer
344 views

How do I display two separate taxonomy archives for two post types that share a single taxonomy?

I have a custom content type, "products", which shares the category taxonomy with posts. We're using posts to discuss and review products. The idea is to have two separate URLs: ...
1
vote
1answer
87 views

How to change header image size in custom themes

I'm using WP 3.5 for a CMS for one of our clients. I need to have a bigger header image than 940 × 250 pixels, so I changed width and height parameters, but when I try to upload a new image, it still ...
1
vote
1answer
413 views

Create template for taxonomy results limited by Custom Post Type

I've got a Custom Post Type with a Custom Taxonomy set up. So how do I create an archive template to display posts from that CPT, limited by taxonomy? Here's the deal: The CPT is called Shows. Each ...
0
votes
1answer
13 views

Remove “ Browse Category : ” from Archive title

I have the Shaped Blog theme and I try to remove "Browse Category:" from my Archive title. I look in the code and found in "template-tags.php" this code : ` ...
0
votes
1answer
23 views

Custom taxonomy returns 404

I'm getting a 404 page when I visit my custom taxonomy page. Custom taxonomy is called 'manufacturer'. I also have a cpt called 'product'. EDIT 1: It has something to do with the cpt rewrite. If I ...
0
votes
1answer
22 views

Single Post Templates Doubt

While I was reading template hierarchy. The single post template file is used to render a single post. WordPress uses the following path: single-{post-type}-{slug}.php – (Since 4.4) First, WordPress ...
0
votes
1answer
96 views

Assign template to edit address form, billing and shipping (woocommerce)

By default, woocommerce has endpoints for editing billing and shipping addresses. You just have to go to my-account/edit-address/billing/ or my-account/edit-address/shipping. What I want is to use a ...
0
votes
1answer
35 views

How to echo a plugin's function into a template?

I've tried checking for a similar question but couldn't find one. If possible please link me to this as I might be creating a duplicate. Anyways.. I am using a basic testimonial plugin (Clean ...
0
votes
1answer
34 views

Show my custom post id if a country or ip

I explain. When a user wants to see the country come my website, for example my url: my-post-example.html I would like to capture the id and display content with the template, etct I have done in ...
0
votes
1answer
40 views

Removing calls to noindex() and wp_no_robots()

In the general-template.php file, I have functions (see below – "noindex" & "no robots") that are not allowing Google bots to index the website. I am trying to find the code where these functions ...
0
votes
1answer
21 views

Post not showing in my custom advanced search

I've created a custom-search-page for my theme that have to search in my CPT non-hierarchical taxonomy and eventually filter the results if some preference is inserted through the options form of ...
0
votes
1answer
53 views

Child theme Page Template not loading

I've currently setup a multilingual multisite. But one page isn't picking up the parents page template. Working: http://www.jeroenbrugman.com/contact Not working: ...
0
votes
1answer
117 views

Load different single.php templates according to post layout selection

I have created a way of choosing different layouts for posts(sidebar right, sidebar left, full width). This is done through a meta box that displays radio buttons with an image for each layout type. ...
0
votes
1answer
49 views

Loading a template for a URL pattern

I am creating gallery pages for events and csr-events custom post type. Now it has three types of pages: www.example.com/gallery www.example.com/gallery/events www.example.com/gallery/csr-events ...
0
votes
1answer
35 views

Locating the template behind a WordPress Page

Is there a way to tell from a WordPress page what template the page was built from. In my case, there's a page at mysite.com/checkout and I happen to know that the template used to build this page ...
0
votes
1answer
12 views

Editing the tag pages and using templates

Pretty simple question, but probably with a complex answer. I was wondering if there is a possiblity to customize a certain tag's page. I have a website where we I post music, and I tag the artists ...
0
votes
1answer
19 views

Displaying a list of Contacts

I would like to list contacts, and I'm unsure how I should do this. Which method should I use "Theme Customization API " or "custom post type"? My contact page would look like this: <h1>Title ...
0
votes
1answer
63 views

Templates for hierarchical custom post type

I'm a bit confused with templates for custom post types defined as hierarchical. I've got a CPT set to hierarchical, not strictly in order to have a nested hierarchy, but so that they can be ordered ...
0
votes
1answer
67 views

Pagination shows Same posts

I made a custom template and I want to show all posts from certain category in this template excluding some ,I am getting as per desired but pagination shows same posts whether I am on 1st page or ...
0
votes
1answer
36 views

us states dropdown function and echo in theme template files

This may seem like a stupid question but for whatever reason I cant find an answer that works for me.. -- I am trying to create a simple html drop down function in functions.php so I can then echo it ...
0
votes
1answer
49 views

Show Templates in Custom Post Type Editor

I know I can use templates for my custom post types like this: http://codex.wordpress.org/Post_Types#Template_Files But I would like to have a dropdown menu to choose a template, like that when you ...
0
votes
1answer
86 views

single.php being ignored, going straight to attachment.php

All of a sudden, for no reason I can tell, my single.php template is being ignored and falling back to using attachment.php If I switch permalinks to use the ?p=123 style, then it works perfectly. As ...
0
votes
1answer
14 views

template structure for CPT not clear

I am a little confused with CPT and custom taxonomies. I created CPT named 'Profiles' and did not create any custom taxonomies for it. So categories is the default taxonomy for it, I tried template, ...
0
votes
1answer
74 views

How to pass a variable from a template page to the child theme functions.php

I'm searching for a way to pass a variable from a custom Wordpress page template to my child theme functions.php file. I have the wrong scope and I'm completely lost. I'm trying to generate a google ...
0
votes
1answer
114 views

Choosing different templates for categories

I was searching about changing the default template of the categories in WordPress, I saw the codex which says that the only way by making a new file with the slug or the ID of the category, like this ...
0
votes
1answer
54 views

Show posts from all categories

I have a site with 5 different categories, each of them with a notices section. I would like also to have another section to see the latest notices from any category. So far, I figured out that I can ...
0
votes
1answer
204 views

Create dynamic content from one WP page to multiple other pages

I want to create dynamic content that is taken from a specific paragraph from one page and writes to a paragraph on multiple pages that feature that same content. I am new to PHP and not sure how to ...
0
votes
1answer
93 views

How to refresh a template page on Wordpress in 3 seconds - easiest method?

Basically, on my site I have content submitted via a search bar. I'm using a content-none template to detect if the user is signed in - and if so it submits a post programmatically (if the post ...
0
votes
1answer
111 views

How to call a certain object/menubar in a PHP file

I made a template and had some help with adding a CSS file to the template. Now I'm stuck on the question, how do I add a certain menubar to my header. Example: topbar - has menu with "Welcome ...
0
votes
1answer
43 views

Category Template - to be editable from the backend?

I have different categories that includes posts of the category. I want to add text and images before or after the posts of the categories are displayed on the frontend. I want to solve this via ...
0
votes
0answers
29 views

Choose to show or not show title on a template?

I want to show the page title in some pages but on others I don't. I'm wondering how to do it. I thought about using differente content templates one with title and one without. But I'm wondering if ...
0
votes
0answers
456 views

Page Template Changes Not Showing

I'm dealing with a weird and very annoying bug where changes to a page template file ("contact.php") are not being registered at all by WordPress. I've made sure that the template has been correctly ...
0
votes
0answers
127 views

query_post while (have post) get_template_part()?

My goal: Is to give the user the ability, if they so choose, to create a new category. I have the current categories saved in a separate php file and call them in using get_template_part(), there ...
0
votes
0answers
52 views

Custom page templates readmore tag is not working

Custom page templates readmore tag is not working. When I insert readmore before some word (in WP Editor) that's not working when I visit the page. I don't need post_excerpt();
0
votes
0answers
79 views

Custom field data is not saving

I only have this code, which is in functions.php. I can see the field in admin page, but the data is not saving. add_action('add_meta_boxes', 'home_page_template_meta_box'); function ...
0
votes
0answers
39 views

Template for page with overridden Theme

I think I've got a somewhat uncommon issue. My wordpress site uses a custom theme, but I wanted to add a blog alongside that, without using multisite because my host charges 3x the amount for such a ...
0
votes
0answers
417 views

Permission denied in template-loader .php

Oh man. I tried to create a custom page template for a page on my site page-cumberland-principles.php When I go to view that page, the page showed up completely blank. I used wp_debug, and found ...
-1
votes
0answers
6 views

Able to access Wordpress backend but site keeps on loading

I am able to open wp-admin of my wordpress install. But I cannot open frontend of my site. It keeps on loading. While tacking back (Using echo "hello"; die();) the reason for this behavior, I found ...