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
1answer
135 views

Genesis - Adding custom hooks to display secondary navigation

within my functions.php I added the following piece of code to display my footer accordingly: //* Customize the entire footer remove_action( 'genesis_footer', 'genesis_do_footer' ); add_action( ...
0
votes
0answers
12 views

How to render custom fields types that are available in custom fileds

I have a custom post type News created by custom post type plugins and i have added some fields like text, textarea, image, file, wisyywig editor etc using admin panel. now my problem is : i have a ...
0
votes
1answer
26 views

Custom form not showing in correct place on page

I have a page like this: <h2 class="subHeader contentSubHeader">Are you already a member? Don´t miss your next career opportunity!</h2> <p class="subHeader ...
0
votes
3answers
220 views

Displaying External Data - Not Posts

I am creating a plugin that needs to display external data, not wordpress posts. What I have done: registered rewrites so wp recognizes my archive/single URLs, hooked into template_include to direct ...
0
votes
0answers
34 views

Couldn't save settings in theme Option

I am using Engine theme and i am changing my theme settings from theme options. When am clicking on the save button, it starts loading and no matter how long it takes, its not saving a single thing. ...
0
votes
2answers
33 views

How to use another file instead of home.php

I have an Elegant Estate Theme and I am using Multiple Category Selection to display some posts, the Result Page is displaying the Feature SlideShow on the top, and I want to eliminate this; I want it ...
0
votes
0answers
53 views

How to display the comments_template with a shortcode and only on that location (remove from default location)?

How can I mimic the code below in order to display the comments list (comments_template) with a shortcode? add_shortcode( 'wpse_comment_form', function( $atts = array(), $content = '' ) { if( ...
0
votes
1answer
97 views

Blank <title> on static home page?

The <title> of each page on my site shows correctly with the following code: <title><?php wp_title(''); ?></title> But on my home page, which is set to a static page called ...
1
vote
1answer
269 views

Blank space at beginning of <title> tag?

The HTML output of all my WordPress pages has a blank space at the beginning of my <title> tag. You can see the effect here. My header template contains this: <title><?php ...
0
votes
1answer
441 views

Wordpress template - How to add class to li tag if submenu exist

for example i want create this menu: <div class="menu_wrap"> <ul class="nav sf-menu"> <li class="sub-menu"><a href="">Main Menu 1</a> <ul> ...
0
votes
2answers
70 views

Import a header template from another theme

I have a multisite WordPress project with a main site using Theme A and all 'sub'-sites using Theme B. Both Theme A and Theme B are Child Themes. I want to import the header file from Theme A into ...
1
vote
0answers
113 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 ...
0
votes
0answers
93 views

Category-Slug.php custom template - no output!

I simply want to output two different categories on two separate pages. I need the two categories to form two rss feeds to Mailchimp, which is fine. I've created two category-categoryname.php files ...
0
votes
2answers
68 views

How to get link to homepage

I've tried get_site_url();, get_bloginfo('wpurl') and home_url(); but they're all giving me a link to the current page rather than the home page.
0
votes
1answer
89 views

Assigning custom page templates to a static blog page

I'm searching for the best solution to create custom layouts for blog pages in WordPress. Where you would normally select a custom page template from the Template metabox in admin to change the page ...
1
vote
1answer
417 views

How can i change email template for new user

When i add a new customer the email goes to new user in this formate: From: WordPress [wordpress@siteurl.com] Subject: [site name] Your user name and password Message: username: user ...
1
vote
1answer
65 views

Template for child pages / subpages

I'm trying to build a template file for my custom post type that is different for the parent, child, and child's child post. The best I've been able to find is the following code: if( ...
0
votes
1answer
47 views

Remove Content edit box from ALL pages (not posts)

I've found several function examples online that remove the content editor based on the template of the page. The issue I am having is that the content is not a post, but the wordpress generic "page" ...
0
votes
1answer
132 views

Advantages of wordpress theme vs wordpress as a backend only

I've been wondering what would be the best option: Creating a wordpress theme Using wordpress only as backend and using a MVC framework for the rest I've never worked with wordpress themes ...
0
votes
0answers
34 views

wordpress use single ajax in place of multiple ajax requests in a smarter way

In wordpress I have database tables like this product name id product_name 1 A 2 B 3 C 4 D product_buying_price id product_name product_buying_price 1 A ...
0
votes
1answer
24 views

Wordpress editable template fields

I created several template files like this: <?php /* Template Name: My Template 1 */ get_header('my-template-1'); while ( have_posts() ) : the_post(); the_content(); endwhile; ...
0
votes
2answers
126 views

Move theme templates to subfolder without losing page associations

I'm aware that templates can reside in a subfolder of a theme since 3.4. My theme has been about for a while and all our templates reside in the theme directory. I'd like to tidy this up by adding ...
0
votes
1answer
29 views

Create a Page template selector page

I'm running around with an idea in my head that I would like to make but I don't really know how or where to start. In a custom theme I had to make serveral templates for one of my clients. I ...
-1
votes
1answer
48 views

Adding css tweak based on page template

I have a parent page that is listing out all of it's child pages. This is done using the below: <?php $query = new ...
0
votes
1answer
41 views

Confused by the behaviour of “front page” / “home” templates

I stumbled upon a confusing issue while trying to customize the appearance of the front page of my blog (blog.example.com) without changing the behaviour of the other blog posts index pages ...
0
votes
1answer
83 views

Single post full screen template not inheriting worpress role permission

In addition to the normal single post view on my website, I added a full screen version of the post with entirely new set of styles. In this full screen option, everything is removed except ...
0
votes
2answers
143 views

Where is search.php?

I've got a site on Wordpress 4.0.1, and I can't find search.php. A database batch process has applied a template to the default search results page, but I now can't find the page to change it back. ...
0
votes
2answers
592 views

Posts in Multiple Columns and Rows with one single loop

I'm pretty new to creating my own theme and I seem to have become stuck and would really appreciate it if someone could help me. I have searched and found snippets of advice but nothing that really ...
0
votes
0answers
17 views

Filtered $locale isn't applied on templates language lines

I change the global $locale by the following code in my functions.php function change_locale_on_admin ($locale) { if(is_admin()) { $locale='en_US'; } return $locale; } ...
2
votes
3answers
609 views

WordPress as Backend, Laravel Front End: How to connect Routes?

I am going design a site and I though about using wordpress for it as the clients want to be able to edit the content and they are not very up to date with the latest technologies, so I though that as ...
0
votes
1answer
115 views

Including Custom Template on template_include Filter not working

I have registered a template like this, but on the template, I was wondering how to get all of the current themes functionality to exist on the template, as some parts are missing in the way I have ...
0
votes
2answers
193 views

custom post type archive template per custom taxonomy term

I want to list all posts with a corresponding template for a custom taxonomy term of a custom post type. To make it easier to understand: The custom post type is called PUBLICATIONS and has a custom ...
0
votes
1answer
136 views

use a custom page to display search results

I would like to display the wordpress search results on a page which I've created in the wordpress backend. I need a page, because I've custom content on this page which should be changed by backend ...
1
vote
2answers
93 views

Why does the Full-width Template in Twenty Twelve pack so many classes into the body class attribute?

I created a page and selected the "Full-width Page Template, No Sidebar" option in the Twenty-Twelve Theme. The viewed page has the following body tag: <body class="page page-id-2 page-template ...
0
votes
0answers
29 views

How to output different content of page on different places in my template

I have a special template for my homepage. There are many different boxes, and in every box I want to have different content. That should be possible to create over the backends page edit function. ...
0
votes
1answer
713 views

How to get_template_part using AJAX?

I'm currently on the Woocommerce archive-product.php template file (say shop page or product category page). On the click of the post (or product), a GET query is added to the title of the same page, ...
0
votes
1answer
42 views

Should meta boxes for specific pages be save in their own plugins?

I realize this is a subjective question, but I need some opinions on where to put functionality like meta boxes that belong to specific pages. Let's say I have a template called Gallery Page. On that ...
0
votes
1answer
36 views

Will placing custom templates in sub directory break any native WordPress functionality

I have, on an existing project, created a folder named templates in the theme root directory where I have put all my custom template files, all the files that have the Template Name: BlahBlahBlah in ...
0
votes
1answer
50 views

How to put limit on slider

My question is, how do I put a limit on the amount of featured content that shows up on my slider on the front page. I'm using Dynamic News theme and it has a slider built in. However I want to limit ...
0
votes
0answers
90 views

Template for portfolio, posts existing but still “not found”?

I'm updating a website which wasn't made by me initially. The website has a portfolio-template which is used on severel sub-pages in the menu, and each sub-page has its own category. Now I want to ...
0
votes
1answer
97 views

How to set a certain Custom Template to a Single Blog Post

I need to set a custom created template to be used whenever a single blog post is displayed. I can see how to assign custom templates to pages under Page Attributes > Template, but how do I tell my ...
0
votes
1answer
158 views

Change location of header.php and footer.php

I wish to organize the my themes directory a little more. Is it possible to move header.php and footer.php to a sub directory? I guess it's done by hooking on to some action, but is it possible with ...
0
votes
1answer
45 views

Category template not displaying all post formats

When I visit a category page that lists all posts in that category, the divs that are to hold the content are empty. The template is clearly only set to display the standard post format, but none of ...
0
votes
1answer
34 views

Is it possible to return a specific tag archive/template as one of the search results?

Is it possible to return a specific tag archive/template as one of the search results? For example, let's say my site has the tag: Summer And my site has the pages: Summer picnicking Fun, fun, ...
0
votes
3answers
132 views

How to list/show all custom post types regardless of category?

I realise with this question I was overcomplicating a really simple issue. My question is really this: How to have a page listing all items of a given custom post type? Say the custom post type ...
0
votes
1answer
227 views

Call a function for social sharing

Using this tutorial I was able to create sharing buttons, but the problem that the code inject right after the_content();, I would like to have the ability to call anywhere in my templates. My ...
1
vote
0answers
64 views

singular.php instead of page.php [closed]

My client requested I use the Publisher templatic theme: http://templatic.com/app-themes/publisher. So far, I'm less than thrilled with the architecture of their themes. For some strange, unknown ...
0
votes
1answer
20 views

custom template for custom url

I've tried registering an URL for which I want a custom template to load up (and list maybe ten or twelve items of a CPT I have already registered and have working elsewhere). I have the following ...
0
votes
2answers
194 views

Loop through pages with specific template

I would like to know how I can loop through pages with a specific template name. I have several pages where the admin can select a template name of SALE. I want to display all content with this ...
1
vote
1answer
42 views

How can I get categories IDs if multiple categories requested via URI?

Let's say, I have two categories, 'color' and 'temperature'. Each one has a number of sub-categories. Wordpress does great job displaying posts in requested categories when I go to URL like this one: ...