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
0answers
31 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
1answer
19 views

Create a variable with string, array or multiple values

I'm running some functions that will allow a user to register their own custom templates to my custom theme from an external directory. They can see these page templates in the wp-admin and they ...
0
votes
2answers
40 views

Where is Number of Posts Set?

I'm hoping someone can help me with this seemingly simple problem. This is a custom theme that I've been given, and simply changing the number of displayed posts in the Settings menu is ...
0
votes
0answers
14 views

Alternative layout the loop

i'm trying to make an alternative loop as found here on stackexchange, it has been a great help to what i've achieved so far, but i'm stuck now. The goal is to make the newspage look like this The ...
0
votes
0answers
16 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 ...
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
votes
1answer
37 views

What is the difference between style.css and index.php

I have looked through internet but I have failed to understand what is each these files are for.
0
votes
1answer
26 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
2answers
22 views

Hook to get the page template that is in use on the admin page edit screen?

I would like to find out which page template is in use as I only want to enqueue some javascript if the page is using a certain template. Is this possible?
-1
votes
0answers
10 views

WooCommerce selectable product page templates?

Is there an easy way in WooCommerce to allow for a drop down (on each product page admin area) that allows us to select from a variety of custom product page templates? Much like the WordPress native ...
-2
votes
1answer
16 views

How to apply styles to the custom page template

I have made a simple page template according to what is said in the how to here :Page Templates When I create a page and in its 'Page attributes' make the template equal to the one I've created, ...
-2
votes
1answer
24 views

Divi Template A Few Questions

I'm new and getting stuck into to WordPress and really like the Elegant Theme Divi option, however I have a few questions I was hoping someone could help with. I do require that the site I build can ...
1
vote
2answers
24 views

How do I add a template to a theme using a plugin?

I need a page template to be used with my plugin. I don't need to replace a theme template such as single or archive. Normally I'd use /* * Template Name: Blah Blah Blah */ to add a template to ...
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
1answer
37 views

Different single page templates for taxonomies

In my WordPress theme I created the custom post type articles. I also created two taxonomies called article & news. How can I display each taxonomy in its own single template? For now it only ...
0
votes
1answer
21 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
25 views

Use another theme template in my theme

I want to use a different theme's portfolio page in my theme. I just want the content (portfolio layout of the other theme) but my own (active theme) header, footer, sidebar, and everything else. Is ...
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
29 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/>' . ...
-1
votes
0answers
22 views

Pagination in page template

I use this code for category and archive pages, but when I paste wpbeginner_numeric_posts_nav(); in the page template, why don't I see a list of numbered pages (I have 20 posts)? function ...
0
votes
2answers
23 views

How can I add some blocks to template without changing template file?

I'm working with the paid child Wordpress theme which I can not change because after it's update all my changes would be lost. I need to change post template (for castom post type, in my case it's ...
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 ...
0
votes
1answer
17 views

DIVs not showing correctly on CPT?

I've been trying to figure out a little problem since yesterday. I made a CPT that is supposed to be posts that are styled and use the same template as regular posts in wordpress. When I bring up ...
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
2answers
29 views

Template tags to display custom post type posts in category template?

I am developing a custom theme with custom post types involved. Custom post types have been defined via plugin 'Pods' (http://pods.io). When writing a category.php, I realized, that the standard loop ...
0
votes
1answer
26 views

How to seperate static phrases from template files in custom theme?

I am looking for best practise patterns how to separate static phrases (e.g. button labels, status messages) from the actual template files when developing a custom theme? It is not necessary to make ...
0
votes
1answer
30 views

Get template part with CPT and Custom Taxonomy conditionals

I have two Custom Post Types Video and Gallery and a Custom Taxonomy Status with the term Featured. Right now I'm showing these CPT in my index.php, but I want to style each of them, so I'm using ...
0
votes
0answers
25 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
1answer
47 views

How to add dynamic content to posts page, archive, taxonomies, search, author, etc?

I am building a Wordpress plugin, it is kind of a page builder and I want to allow users to manually customize the page layout by adding content/shortcodes to any page within the "Template Hierarchy": ...
0
votes
1answer
16 views

Remove header and footer but KEEP all css and js etc for a custom post template?

On my site have a custom post type with this info. I stored the file in single-{customposttype}.php. <?php get_header(); ?> <div style="width:500px;"> <?php $id = get_the_id(); echo ...
1
vote
1answer
27 views

How to change plugin`s template (view) correctly?

I'm new to WordPress. So, I have installed a plugin to display recent posts (that's it: https://wordpress.org/plugins/flexible-posts-widget/). This plugin have a widget. And now I want to change ...
0
votes
1answer
26 views

WP plugin calls for custom pages

I'm trying to create a custom landing page for my site. I am using wordpress because of the SEO plugins they offer. Mind you I'm not an expert so this might be an obvious question (please be gentle) ...
0
votes
0answers
14 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
1answer
32 views

Loop through custom posts by taxonomy and display the titles in a list, it is repeating 8 times

I have been messing with this for too long after searching the internet through what seems like hundreds of posts and the codex. I feel like I almost have it but am missing something. My limited ...
1
vote
1answer
16 views

How to customize core admin pages within a theme?

Say I'm building a WordPress theme, and when this theme is active I want to display customized versions of some admin pages. Let's suppose I want a custom "Widgets" page: I can find the template for ...
0
votes
1answer
30 views

Using page-something.php as static front page

I have created 2 pages inside wordpress "blog" and "hpage", on the config I have set static front page to "hpage" as initial page and "blog" for posts index. Now I want to create a "page-hpage.php" ...
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 ...
1
vote
1answer
30 views

How do i change page template in bulk?

Googled for a long time, but did not find any solution. The case is - I have 950 pages I'd like to switch to other template. If i do it manually - it will take some time. If I do it via admin panel - ...
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
2answers
44 views

Creating page-templates directory breaks everything!

I decided to organize my work in FTP because I've got over 25 templates by now and the list of files/directories in theme's root is getting really long. I stumbled on article where I learned that ...
1
vote
0answers
8 views

Modify “gifts” and “discounts” html on woocommerce [closed]

I need to change code html of gifts and discounts (summary) part on single-product. Thank you
0
votes
0answers
12 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 ...
0
votes
0answers
57 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 ...
1
vote
1answer
31 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 ...
0
votes
2answers
47 views

Child theme template file will not load

I have a child theme that will load my style.css file but will not load my php template file. I got this template file by copying and pasting it from the parent directory into a new file with the ...
1
vote
1answer
17 views

Conditional tags or Multiple files

If the official themes and Underscores are some sort of a guide, one would notice that multiple files with little differences are preferred over conditional tags (archive.php, search.php, ...
10
votes
2answers
653 views

To close or not to close php

I have read that it is advised (especially with php 7) to not close the php files with ?> Many of my WP php files end like this: <?php get_sidebar(); ?> <?php get_footer(); ?> ...