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
0answers
124 views

Loading partial templates with AJAX/PJAX

I am trying to load content using PJAX (basically AJAX with history). So far I have managed to catch PJAX requests and load the correct content. My problem is finding the correct template to use for ...
1
vote
0answers
10 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
0answers
15 views

Full page template function

I would like to be able to create page templates that all look almost the same, and have a template I would like to use. I would only like to change certain fields for the page, for example: header ...
1
vote
0answers
13 views

Print shortcode in defined area

I would like to make shortcake to work that it would be possible to print in certain areas (sidebar, footer or normally in content). In templates I have two places with do_shortcode function (sidebar ...
1
vote
0answers
19 views

Adding Page Templates to post but it ignored it

I follow the post to add the template metabox to a custom post type's editor, but it doesn't work. When I visit the post, it shows "NOT FOUND ANY POST" which looks like index.php or single.php ...
1
vote
0answers
35 views

Change submenu markup

I've seen people recommending to edit the wordpress default Walker to change the menu markup and create your own. The problem with this is that I would like to change the markup of the submenu and ...
1
vote
0answers
18 views

link to non-category page routed to category template

Working on a theme I was surprised when a link to an about page (about is not a category) is routed to the category template. Why is this so? The template file for the about page is default. Then I ...
1
vote
0answers
157 views

How to Use Twig + Timber with Multiple Loops based on Meta Key Value

So, I've got a custom field (meta_key) 'premium' with some posts (meta_value) set to '1'. I would like to display all of the premium posts above the the others. I imagine this would be done using ...
1
vote
0answers
205 views

Default 'post' post type archive slug?

I have a wordpress site, which has a front-page.php rendering a custom front page, so that this template will show no matter if WP admin settings is set to static page or show posts. The default ...
1
vote
0answers
347 views

get_file_data to read data for Custom Template File?

I have a plugin in which I'm trying to allow users to create their own variants of the styles, and upload them as custom "templates". Essentially these templates are php files with some HTML in them. ...
1
vote
0answers
31 views

Page template no longer exists - metaboxes won't save

Ok, this is a weird one. I first experienced this on an older theme that I developed - I assumed I had some buggy code in there somewhere, but couldn't figure it out even with the help of another ...
1
vote
0answers
51 views

Plugin templates vs Parent Theme

I've been building a plugin using a WooCommerce like template system, where the plugin houses the default templates, but allows for overriding via a template folder in your active theme. It just ...
1
vote
0answers
260 views

Turning on the 404 page on localhost

I'm using my localhost (XAMPP client) to test my WordPress website and everything works fine, till it comes to verifying how does my 404.php template looks like. I can't preview any changes, because ...
1
vote
0answers
62 views

Search form not finding content in template page

I created some template pages on my wordpress theme and when I'm trying to do search for some words it returns Nothing Found. When I tried to search for words from the posts or normal pages(Not ...
1
vote
0answers
178 views

Checking for page templates in child theme

I have a simple problem I'm hoping someone can shed some light on. I have a child theme with a custom page template and I'm simply trying to check weather or not the template is in use. Under normal ...
1
vote
0answers
117 views

WordPress Not Using Template Files After Permalink Update

I have a really weird issue that just occurred on a client site. I updated the permalink structure from /%category%/%postname%/ to /%postname%/ and suddenly my pages don't respect templates and are ...
1
vote
0answers
464 views

Wordpress custom taxonomy template not working

I installed theCartPress plugin and it created tcp_product_category taxonomy for tcp_product post type. I created a page with custom template to list all the product categories. I can use ...
0
votes
0answers
13 views

Wordpress changes not showing

I'm wondering how to fix the website when the changes are not showing instantly? I tried the following fix: Installed W3 Total Cache and Super cache and cleared all the cache on the website Cleared ...
0
votes
0answers
15 views

Rewrite single template permalink?

I have a single template file called single-schools.php. A school "templated" post is reached via the url http://example.com/schools/post. But the site's main language is Swedish, and therefore I want ...
0
votes
0answers
17 views

Create multiple categories of “Page Templates”

I was wondering if it is possible to categories Custom Page Templates. I would like to display 2 meta boxes which display different templates (which would then only be displayed on page edit screen if ...
0
votes
0answers
25 views

Removing A Parent Theme Template

There is a template with code that I want to prevent the child theme from loading. All it does is load a little date box. What i've done is duplicate the hierarchy of that template file located in the ...
0
votes
0answers
38 views

Child theme not loading parent layout

I am new to WordPress and I am just trying to help a friend customize his blog. I started doing this via the wp-admin Editor and CSS Editor until I found out this was a big no-no. So I set up a local ...
0
votes
0answers
18 views

how to display term name angularjs

I've recently learned about angularjs and I am trying to display a term associated with a specific custom taxonomy. So far this is what I've tried in my partials file - <div ng-repeat="post in ...
0
votes
0answers
10 views

dynamic table for post?

I want to display a list of items with pictures and a short description in a table on a wordpress page. The problem is that I want to the main future editor to be able to add new items at the start ...
0
votes
0answers
15 views

Assigning custom title in tag template

Wordpress (at the moment of writing the question): 4.4.1 The task: create tag pages with the following features: tag page URL ends in .html tag page display posts marked with the tag in specified ...
0
votes
0answers
12 views

Template tags to generate dynamic landing page

I've been trying to figure out how to do the following: www.test.com/new-york/ www.test.com/miami/ Depending on what the url shows it will change the content of the page and replace everywhere i ...
0
votes
0answers
30 views

How to add product short description and thumbnail to Woocommerce 2.5 email template?

I found below code snipped to add the short description to the Woocommerce template on another thread, but it does not seem to work on the new Woocommerce 2.5 version. echo '<br/>' . ...
0
votes
0answers
12 views

How to assign a new template for a new category?

I am using pagelines template .Custom template works for blog as the template file is saved as category-blog.php . But i try to do the same for a new category category-newcategory.php , it did not ...
0
votes
0answers
26 views

Adding Pagination to a Custom Wordpress Page Template

I have been playing around with the Resi theme, trying to see if I can add pagination with a few tutorials I have seen online. To date I have only been able to get the pagination to load, with the ...
0
votes
0answers
15 views

Editing specific text on Custom Page Template

I'm a Wordpress beginner and made my first personal theme from a static html website. Currently I'm trying to edit specific text on for example the homepage. I did manage to changing background color ...
0
votes
0answers
13 views

Multisite static homepage won’t change template on sub sites

I'm having a problem with WP Multisite. I'm trying to make the home page of my sub sites use the landing page template, but every time I choose the specific page as my home page on settings, it ...
0
votes
0answers
12 views

Best Practice - Multiple Templates & append Posts

I'm new to Wordpress and I've Html/Js/Php Knowledge. May I know is this a correct way to develop a custom theme site? I will have multiple templates files like : home,about,contact-us templates ...
0
votes
0answers
8 views

Real Time Page Template Preview in WP Admin

I'm a little afraid to ask this question on Stack Exchange as it could be "off topic". I use many different page templates for a marketing sites 'landing pages', as these templates are re-used I ...
0
votes
0answers
20 views

Editor Style when using diferent Page Templates

I created two templates on my WP theme, one with full-width and other with a sidebar. Like this: template-fullwidth.php <main id="content" class="main <?php echo storms_classes_page_full(); ...
0
votes
0answers
58 views

Use Woocommerce Ajax Product Filter in Userpro template page

I have Woocommerce and YITH Woocommerce AJAX Product Filter installed and I'm using it with Userpro and custom templates for both. I want to show product filters in Userpro user profile page by ...
0
votes
0answers
17 views

Create page outside/without administration, inside theme

Is it possible to create a page/php-file (eg. schools.php) that is based inside my theme. And reached with the url: http://example.com/schools. And that the page uses WP system, so I can include ...
0
votes
0answers
20 views

Style only one category product different

I want my page of my categories, electronic, to be different from the other category pages. Is it possible? How?
0
votes
0answers
100 views

How to call function in functions.php in external file inside same theme?

I'm trying to develop a theme by my self, in my theme, i have a function inside functions.php and a php file named ajax.php. i was trying to call a function inside functions.php in ajax.php, but its ...
0
votes
0answers
30 views

Change menu order in Restaurateur theme

I have installed a theme called Restaurateur, which includes a "Restaurateur Menu Item CPT" plugin that displays a menu page with fast food categories and meals. When you load the site, all meals are ...
0
votes
0answers
26 views

Loop returns more items than exist?

Using the answer here: http://wordpress.stackexchange.com/a/207601/45709 exact works as it is intended. It returns 3 slides because only three slides exist. I had to slightly modify the code because ...
0
votes
0answers
10 views

List Taxonomy name of item with 2nd tax filter

I'm not even sure where to begin, or if what I'm requesting is possible. Here's the situation: I'm using a sermon plugin for a church website. (Sermon Manager). There are custom taxonomies for Series ...
0
votes
0answers
35 views

Display the post on page scroll and auto update URL

I have to create a page template on which I can show all the posts by category when scrolling down the page; here is an example. My theme index page code is: do_action( 'st_theme_init' ); ...
0
votes
0answers
26 views

How to decouple custom post types components from template?

I am in my early stage on learning wp development and tried something "simple". To manage some custom entities in my back-end and try to display them in front-end. So what i did was: Created custom ...
0
votes
0answers
19 views

Author predefined templates

Is there some way in WordPress to "templatize" the page published by each author on the website? For instance, I would want each post to have a video compulsorily, and will be incorporating a YouTube ...
0
votes
0answers
52 views

How do I get the meta section in top rated posts of thumbs rating plugin

Hi. I am trying to make page templates using the thumbs rating plugin. and trying to display top rated posts. All was going well, until I got stuck in the meta section. The function I am having a ...
0
votes
0answers
36 views

Why isn't my custom post type using the corresponding custom post template?

I've created a custom post type, 'film' am having trouble getting posts of this type to use the custom post template I've created in my theme directory. I created the 'film' post type in ...
0
votes
0answers
66 views

Override Wordpress Timber Template locations for Woocommerce

I need to overwrite the page template locations for Woocommerce using timber Wordpress. To change the location for the twig files was no problem. All page Templates are stored in the theme root ...
0
votes
0answers
32 views

wp_enqueue_scripts - force .js file to be last included file after plugin js files

I need to include a custom jquery script and need this to run after everything else. I have included it using the following code in the functions.php file: function add_custom_scripts() { ...
0
votes
0answers
18 views

How to change standart wp li element for wp_nav_menu

How can i change Li element of wp_nav_menu with Walker i found some code, but don't udnerstand it yet, where can i input my own li with class here is code class Description_Walker extends ...
0
votes
0answers
54 views

Home Layout Odd Number Grid and Even Number Grid

Does anyone know how to create or a template or theme of what is right or it could create a Home layout like this? (only using 1 theme) Layout with images of an odd number (1,3,5), Layout with images ...