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

Custom view on data [on hold]

I created two custom post types - Company and Item. I established a relation between them using Posts2Posts plugin. What is the best, most correct way to create a template/view displaying all the ...
0
votes
1answer
28 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
26 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
21 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
23 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
17 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 ...
0
votes
1answer
19 views

Page is being redirected to Main Index Template when previewing the newly added page [closed]

What I'm missing here? I know this is pretty simple but I couldn't make it work. So I uploaded this portfolio website and I have 6 pages on it one is a landing page so I make it the Main Index ...
1
vote
1answer
36 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
24 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
12 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
7 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
16 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 ...
0
votes
0answers
7 views

How to handle loading all Post records and allowing user to select which ones they want inserted into newsletter?

For a while now I have wanted to build a new WP PLugin that allows you to selects Posts and generate a MailChimp Newsletter. It let's you use a template and select all the posts you want in the ...
0
votes
1answer
19 views

Function the_content

For some reason on my attachment page template (http://capa.furniture/?attachment_id=1494) I am getting the url of the reduced size image. I do not know why. I am not getting the thumbnail full size ...
0
votes
1answer
24 views

How should I add a “widget” like element?

I would like to add a custom slideshow like "template" which can be called in to other template files. My first thought was to create exactly that; a separate slideshow.php template file which ...
-1
votes
0answers
20 views

Twenty Eleven How to Change h1 and h2 For Unique SEO TItles for each page

I'm using wordpress twenty eleven v 4.1.1 as a site so using pages rather than posts. Noticed that the h1 and h2 headings for each page defaults to the site name and strap line, not good for SEO. I ...
0
votes
0answers
38 views

Wordpress not picking up custom templates in sub directory

Setting up a new wordpress site at the moment separating wp_core from wp_content. I'm using timber and twig for my views/templates. My current project structure is: \ core (wp_core) |- \ content ...
-1
votes
1answer
42 views

Including 2 Negative Is_Template Conditionals in header.php [closed]

I want to set a conditional in header.php to wrap all of my templates, except front-page.php and single-device.php, in a bootstrap container element. Writing one conditional achives what I want if( ...
0
votes
0answers
22 views

Plugin Boilerplate - Where should I put helper functions?

I'm using the Wordpress Plugin Boilerplate and as it's OOP, I don't see where is the place for helper functions. If I am using this for say a review plugin - and I have a function that generates the ...
0
votes
2answers
25 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
12 views

My blog “page” used to show a list of posts, but now it's just showing the page content?

I used to have a page called "Blog" with dummy content (it said "hello world" or similar). Off the menu there was a link to www.mydomain.com/blog and this used to fire up index.php and list recent ...
0
votes
1answer
17 views

Is there any way of viewing revision history on files in Wordpress?

I have done some tiny changes to my style.css file and my header.php file. For want of a better word I have destroyed my website, and i am losing my mind trying to figure out what I did wrong, ie is ...
-1
votes
0answers
14 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
1answer
36 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
31 views

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

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
19 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
13 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
35 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
31 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
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
13 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
62 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
15 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
22 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
21 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
31 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
158 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
106 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
30 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
54 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
30 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
52 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
21 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
41 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
28 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
38 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
20 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
15 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; ...