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
20 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
70 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/>' . ...
2
votes
1answer
79 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', ...
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
1answer
31 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
2answers
25 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
17 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
331 views

Wordpress removing data attributes for scheduled post

Hi I'm using the smarty templating engine in wordpress to generate HTML like the one below: <li> <div class="checkbox_container" data-asin="B0009Y7APU"><input type="checkbox" ...
0
votes
0answers
14 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
129 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
36 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
1answer
102 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
0answers
47 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 ...
3
votes
5answers
6k views

Tools for Converting an Existing Website Design to a WordPress Template?

I know how to do it manually, but is there any tool to help me with that?
0
votes
1answer
29 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
1answer
62 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
33 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 ...
1
vote
3answers
555 views

Custom Post Templates

The Issue: I am looking for custom single post templates, to add or remove individual elements as a function of a normal single post. There are a lot of ways to create custom post templates for ...
0
votes
0answers
19 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
47 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
23 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 ...
3
votes
2answers
7k views

Enable page templates. How?

Basic question, but I want to enable page templates. I have one theme which has page templates enabled. I switched to another but there is no option to change the template, even when creating a new ...
0
votes
2answers
746 views

How do I get the URL of a specific size featured image?

I am using <?php wp_get_attachment_thumb_url( $attachment_id ); ?> to get the url of a thumbnail for a post in Wordpress. However I would like to retrieve the URL of a specific size image. So ...
0
votes
1answer
42 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
18 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
16 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
41 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 - ...
1
vote
1answer
85 views

Remove WordPress scripts

I am working on a custom page template in my theme and I want to remove all other styles and scripts which are loaded, like default theme style, jQuery & other scripts. I want to remove all for ...
0
votes
0answers
21 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
2answers
60 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 ...
0
votes
0answers
23 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(); ...
1
vote
0answers
15 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
128 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
47 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
61 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 ...
-2
votes
1answer
121 views

<head> files disappearing from template

I have a site (link below), that every now and again, a bunch of the CSS of JS links in the head, simply disappear from the template (when i view source, they are not there). this of course means that ...
1
vote
1answer
22 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
705 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(); ?> ...
1
vote
1answer
211 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 ...
0
votes
0answers
24 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
27 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
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 ...
2
votes
1answer
1k views

Added a new template file to a theme - get Call to undefined function error

I added a new file in the theme folder and it doesn't seem to be working properly. The first line get_header(); creates an error Fatal error: Call to undefined function get_header() like it's not ...
0
votes
1answer
59 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: ...
2
votes
3answers
5k views
0
votes
1answer
36 views

Theme Dev | Convert Template to Theme

What is the solution in theme development for section in this template Home Page so user can edit from admin panel. "Main Features" Section, at bottom of slider, it says "Strong Structure", "Global ...
0
votes
2answers
25 views

get_month_link uses what wordpress template?

I tried using archive.php and category.php but always index.php is used of my template. How can I customize what template file is used?
0
votes
1answer
34 views

Retrieve a custom form field modified by a filter

I use a 3rd party plugin that creates a form with some fields. I want to use one of these fields in one of my templates. Is there a way to do this? UPDATE I found a solution, see the accepted ...
0
votes
1answer
124 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
44 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 ...