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
10 views

Newbie that needs some help to get started

I am a web developer with little to no experience in WordPress development. I just need some help on where to get started with functionality I want to build for our site. My employer has a daily ...
-1
votes
0answers
25 views

Any new plugin installed and activated won't work in custon developed Theme. Please Recommend Debug Methods?

Successfully Installed and activated plugin won't work in custom developed theme. What files should I look into to make it work?
0
votes
0answers
13 views

create search form with dropdown taxonomy and input text + custom template for action form

0 down vote favorite i create search form with taxonomy dropdown and input text for keyword "My Custom Taxonomy name is gener" this is my code without problem <form role="search" ...
0
votes
0answers
14 views

Home page template changing on modification from random pages

I'm currently having a major problem using wordpress 3.8.1. Whenever I'm modifying a page, the template on the home page changes to whatever the template of the page I'm modifying is. Home page as its ...
0
votes
0answers
16 views

Child pages in a Custom Post Type are appearing blank

I've registered a CPT with the following: function create_client_post_type() { $labels = array( 'name' => _x( 'Clients', 'Post Type General Name', 'text_domain' ), ...
0
votes
1answer
24 views

How to create custom page templates with default page layout framework?

I'm writing a custom theme. Most of the content will use the regular index.php, header.php and footer.php. The index.php looks like <?php get_header(); get_sidebar(); ?> <div ...
0
votes
0answers
22 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 ...
1
vote
2answers
24 views

How to check active theme is parent or child wordpress

I am working on a plugin in plugin. I make template folder and in template folder and there are files of plugin that shows my post type data. First Scenario When user activate my plugin the template ...
1
vote
1answer
24 views

Template for all categories of a custom post type?

Hello ladies and gents! I'm hoping you can help me with this one.. if it's each possible. I (ideally) need a general template for the categories of a custom post type. Custom post type: Listings ...
0
votes
1answer
22 views

how could I load a different template part by page

I would like to use get_template_part(); to load a different template parts on different pages. so on the home page it loads get_template_part( 'content', 'home' ); and on the blog page it would load ...
0
votes
0answers
13 views

creating one page theme but templates are not being applied to page content on the “one”page.

I am creating a one page theme. I have a loop that puts the content from each page on a single page but it does not apply the temple for each individual page. Here is the loop I am using. <?php ...
0
votes
0answers
19 views

How to get values from Gravity Forms fields? [closed]

I'm using gravity forms to allow users of my site to submit posts from the front-end. I have a URL field, where they enter a URL to an external webpage into the form along with a title field. In my ...
2
votes
2answers
102 views

View WordPress page template usage (or unused)

When I create a new page within WordPress, I have the option of specifying which template to use from my theme (from a dropdown list on the right-hand side of the interface). I need to find which of ...
0
votes
0answers
22 views

How can I stop the content template from grabbing media files?

I am running Wordpress 4.2.2 on localhost Mac OS X Yosemite. I am developing my first theme using underscores, and I am having a problem with the php content loop. I am using the ...
0
votes
1answer
22 views

When to use content-pagename.php?

I have seen themes using content-pagename.php in many themes. This file is usally used by get_template_part function. Also, pages are named as page-slug.php or page-id.php. However, I am not clear ...
0
votes
1answer
29 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
0answers
21 views

Parent to another Custom Post Type - Template files not being recognized

I have two custom post types - 'gaming-consoles' and 'xbox-games'. I also have two custom templates for these post types: single-gaming-consoles.php and single-xbox-games.php - which worked great. ...
0
votes
2answers
21 views

Create a free scripts and styles template within a plugin

Let me explain what Im trying to do. Im creating a plugin that will have a main page like a dashboard that will be used to manage the public facing side of the plugin. Just think like a separate app ...
0
votes
2answers
35 views

Wordpress Custom taxonomy template

I am trying to create custom template for custom taxonomy. For example i have a custom taxonomy registered in WP with name brands and slug brand i used following code to register custom taxonomy. ...
0
votes
0answers
15 views

Show child theme for users on specific IP

I have some users coming in from a fixed IP range on a very slow connection (256kbps) so want to server them a child theme that has a lot of the bandwidth intensive features removed. For ease of ...
0
votes
1answer
31 views

Best way to organize data in this scenario

My question is about data organization more than code, I hope it still has its place here. My site's main menu has an item pointing to a page called "Videos". This page has 2 main parts: The last ...
0
votes
0answers
31 views

Get Page ID of blog homepage

my start page in WP shows the latest posts. I added some meta fields to the start page in the WP backend which I want to access before the list of recent posts starts. I try to access the meta values ...
0
votes
0answers
17 views

Define meta fields in a page template

I had an idea for managing fields for page templates and I thought I'd post it here to see if (1) this is terrible and (2) if there's a better way to define the fields in the template. Here's the ...
0
votes
1answer
51 views

custom post type plugin - single template

I'm writing a plugin that creates a cpt. I can include a template for viewing a single instance of the cpt using the single_template filter. And have it look for a template overload in the theme. ...
-1
votes
1answer
36 views

How do you access the Product Short Description in a WooCommerce email template? [closed]

I would like to output the Product Short Description beneath the product name inside the order items table inside WooCommerce emails. I think I know where to place code inside the email template file, ...
0
votes
1answer
18 views

Display a post via template

I want to display a single post in the sidebar-area (not the sidebar itself) and can't seem to get it working. I know the post_id (it's 1571 btw), so I looked around and only found this link from 7 ...
0
votes
1answer
31 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
27 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
2answers
42 views

How to add new CSS file to new PHP file

I've made a new template file for Wordpress constructing the elements of the page via PHP and Wordpress recognizes the template as such. Then I wanted to include a CSS file for said template (same ...
0
votes
1answer
28 views

Templates for Mobile Site

Is there any built-in method for displaying a different template based off of browser size device (i.e. mobile device detection)? I've done some research and all I can find is a ton of plugins that ...
0
votes
1answer
39 views

How to display only posts assigned to a particular, isolated, subcategory

I am trying to set up my wp site where I use posts assigned to categories and subcategories (about 3 levels). I have a list of 1st level categories as my primary menu. When clicked, the intended ...
0
votes
2answers
39 views

Page editor missing Templates drop down

Update: As with so many mysteries, the cause turned out to be extremely stupid. I had the file saved in a different theme's directory. Thanks to @a4jp.com I'm building a theme using underscores. I've ...
0
votes
2answers
47 views

Understanding the Template hierarchy

I've got a template called News. When I go to the Dashboard and edit the Page called News which has a web address of news.html I can see it uses this template (i.e. in the Page Attributes > Template ...
0
votes
0answers
11 views

Display posts: date of editing

I am from Russia and I have to use Google Translate. I'm sorry ) Does not think like me to build a loop to the pattern on the front page posts to be displayed on the date of editing. Top recently ...
0
votes
1answer
29 views

Redirect Every Instance of The Author Template Pages to Custom Author Pages

What I'm looking to do is actually a simple redirect, but for the EVERY page contained in the /author/ slug. The working slug I want to redirect to is /team/. For example, if someone were to type ...
0
votes
0answers
11 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
34 views

WooCommerce: Add content prior to or after checkout form

I'm trying to produce a message to appear prior to (or after) the checkout form on the checkout page (Example: https://susieoshandbags.com/shop/checkout/). So I did the following: add_action( ...
0
votes
0answers
31 views

Submit form to another template (ugly url)

I've created a submit form with some filters that makes a query request: <form action="<?php echo get_template_directory_uri();?>/list-items.php"> my form here... </form> Created ...
1
vote
1answer
39 views

Create and set templates for custom taxonomies

I've created a custom taxonomy for a custom post type. Code: add_action( 'init', 'register_taxonomy_mytaxonomies' ); function register_taxonomy_mytaxonomies() { $labels = array( ...
0
votes
1answer
50 views

Getting page/category content to show up in my custom page template

I am trying to get my category page content to show up in my custom page template, it returns everything I call, except for the actual page content when I am testing it. Hope this is somewhat clear :\ ...
0
votes
2answers
34 views

Custom templates vs page-slug

I've currently been using the slug to set the page template, using the normal hierarchy For example, if I wanted to change the page template for http://www.example.com/about-us, I would edit ...
0
votes
1answer
63 views

how to remove entry meta from wordpress archive category and change its display

I'm working with the Bootstrap Child Theme on WordPress. My problem is that I want to remove the entry meta - like posted on date by admin - and also want to change the display of all these posts, but ...
0
votes
0answers
33 views

URL rewriting with custom user meta “/%shop_name%/gallery/%gallery%”

I have created a custom user meta = shop_name in User Profile and custom post type gallery The default URL of the post is http://localhost/gallery/%gallery% which i have modified to below given URL ...
0
votes
0answers
19 views

Custom post type - cannot link custom template to it in my plugin

I have created a custom post type called "syndication" in my plug-in and that all works as it should. However, I want to provide a custom template for the "add" option so I created a file in my plugin ...
1
vote
1answer
50 views

Create default_content layout template based on post id

Background What I am attempting to do is create a custom post layout template for a specific post (or even page) that the WordPress user can simply insert content using the WYSIWYG editor without ...
0
votes
1answer
40 views

Which template name to use for taxonomies but not their terms?

I can't figure out which template name to use to modify custom taxonomy archive page, but not the one for terms in that taxonomy. My goal is to show terms list in custom taxonomy archive and in ...
1
vote
2answers
27 views

Which custom query am I in and how can I access its properties & methods?

Sometimes there's no way around creating a custom query, but when I do and then loop through it, I often want to use get_template_part() within the custom query loop to pull in a template I already ...
0
votes
0answers
34 views

Using external file with WP_USE_THEMES set to false causing 404

I have a file in my template I want to use for a Twitter authentication callback named oauth.php that I'd like to be accessible through htp://mydomain.com/oauth.php: <?php define('WP_USE_THEMES', ...
0
votes
0answers
8 views

Unable to use template modules while creating page

I am trying to create a product page and wish to use a custom template that I built. I selected the template in the Template Option but none of the template modules were imported the page edit ...
0
votes
0answers
22 views

Using file outside of template hierarchy for Twitter sign in authentication

I'm trying to use a file for my Twitter sign in authentication callback that isn't in the traditional WordPress template hierarchy. This is a problem I generally want to solve away from this one ...