Within the context of WordPress Theme-ing, the term 'template' refers to PHP files used to display content.

learn more… | top users | synonyms (1)

-1
votes
0answers
12 views

2 (or more) author's photos

I want to display author photo in blog post on front page and another author photo on the post page (e.g. each author will have 2 different photos). What is the best way to do this? Thanks!
0
votes
0answers
10 views

How to link between index pages

Current situation: I have my theme that has a index.php file and I am using get_template_part('index-parallax') to get that template file. This is what's expected. Now the index-parallax.php page ...
0
votes
1answer
31 views

Create theme for mobile phones and tablets only?

I've been checking the docs but I only found a way to use different style sheet for phones and tablets. Is there a way to create another different theme only for mobile phones and tablets? And I'm ...
0
votes
0answers
29 views

carousel in wordpress not work in theme (problem with 2 jquery js)

i use owl crasoul in wp theme but not load in home page and i use layer slider jquery layer slider: 1.8.3 jquery carousel: 1.9.1 when delete jquery of every not load other ! why? owl code: ...
0
votes
1answer
16 views

How do I set a specific template for sub-categories?

There's a few posts about getting sub-categories to use the same template as their parent but I want to do something slightly different. I have a category 67, and I want all sub-categories of 67 to ...
0
votes
1answer
11 views

Allow arbitrary text after page URL

I'm trying to add a page that is able to display different information from a database based on the URL. http://example.com/page/ retrieves the page. I want ...
0
votes
1answer
24 views

Why is my sub-category template showing the wrong posts

I've got a problem with a custom category template. Used on sub-categories for a particular parent. For some odd reason it's not showing posts store within it, but instead from a another ...
0
votes
1answer
18 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
1answer
8 views

Wordpress Emails [on hold]

I am new to wordpress and I need to send a respondent email that shows a Google Form inside from an event webpage. The google form shows in greko mail and on my phone but not in gmail. I just ...
0
votes
0answers
10 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
12 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
44 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
10 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
21 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
15 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
23 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
138 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
65 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
27 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 ...
0
votes
0answers
45 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
21 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
47 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
16 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 ...
0
votes
1answer
21 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
votes
1answer
25 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
22 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
35 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
16 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
13 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
30 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
16 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
33 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
34 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
30 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
31 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
123 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
13 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
133 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
34 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
86 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
41 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
34 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
19 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
141 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
27 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
21 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
34 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
45 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
35 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
51 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 ...