The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
383 views

Running a loop with a custom query string on a custom page template

I made a custom page with a template that is just a loop with custom query string for a list of posts from a specific category but when I view the page it only shows one post with the title being the ...
0
votes
1answer
36 views

How to make pages that arent indexed for ajax applications

I'm using a content section on my homepage to switch through multiple loops with ajax tabs and to do that a tutorial told me to make multiple pages and assign each page with a different template which ...
0
votes
3answers
114 views

Need help with adding templates (archives and sitemap) to Wordpress child theme

I recently switched themes, and my old theme had templates for sitemap and archive (in fact the archive was one of my most viewed pages.) When I switched themes the link to the archive and sitemap ...
0
votes
1answer
354 views

Dynamically change Custom Post Type Template OR Change Permalink?

I have built a plugin that uses a custom post type and a single-.php file for a template. My issue is the custom post type template needs to take on the name of the post type and I need to change ...
0
votes
1answer
508 views

Trouble in creating a custom template on twentyeleven theme

I am trying to extend the twentyeleven theme's sidebar template. My custom template (its incomplete) is as follows: <?php /** * Template Name: Quote Request * Description: A Page Template that ...
0
votes
1answer
193 views

Page template anomaly

I have created a page with some text in it using this page-about.php as a template; page-about.php contains the basic: <?php /* Template Name: About us */ get_header(); ?> <div ...
0
votes
2answers
731 views

Authors Page : A page of authors

I'm looking for a way to create a parent authors page and then use the author.php for the individual author pages. I've been out of the loop (no pun) for a couple months and am wondering the best way ...
1
vote
2answers
1k views

WPML in custom page templates

I have a Wordpress site translated from dansk to english using WPML. In it, I have a page which uses a custom page template to display the titles of all the posts. Sadly, it's displaying all posts ...
0
votes
1answer
41 views

Show tarifs page with menu a or b depending on menu of origin

I have a site with three menus, one per main category of the site. I use pages only. Two main categories have one page in common. Category A with menu a Category B - with menu b - with tarifs page ...
0
votes
1answer
129 views

My own contact form template is not working [closed]

I am trying to make my own contact form without the aid of a plugin. Shouldn't be that difficult so I created this template: <?php /* Template Name: Contact Form */ ?> <?php //If the ...
1
vote
2answers
293 views

Query from a different database than the default

I'm making a layout for a wordpress page. The layout needs to connect to a second database (both databases are in the same domain). But the problem is, when i execute just the file it works. But ...
0
votes
1answer
68 views

Page (template) with only news of the type “gallery”

Could anyone explain to me how to create a picture galleries page, using the built in Wordpress galleries (no plugins if possible)? Basically, I would like to create a page (template?) in which I ...
0
votes
1answer
175 views

How properly create a blog template for wordpress?

I imagined that it is pretty easy to do: just take everything what is in index.php. Add <?php /* Template Name: Blog */ ?> at the top and you all set, but in my case it is not working. I ...
4
votes
5answers
1k views

How can I add an option to the Page Template list from a Plugin?

I've been looking around for the past couple hours for a way to create a custom page template from within a plugin but haven't had any luck yet. What I am specifically trying to do is add an option ...
3
votes
1answer
2k views

Variable use in get_template_part

As far as I understand (from the get_template_part codex) get_template_part is just a wrapper round the PHP require function. So if I have a variable that I have create in a page template file e.g. ...
1
vote
1answer
126 views

Programatically changing template of a page

Is there a way to change the Template of a page from Default Template to another programatically?
0
votes
2answers
4k views

How do I create a page template to display a custom post type?

I am wanting to create a page template file to display posts from a custom content type. I was working with this code I found from this site, but it renders nothing. Does anyone know what the problem ...
0
votes
1answer
132 views

How do I render a navigation menu like my theme does?

I am using the theme suffusion, and I'm trying to add a custom navigation menu to only one of my pages. I've managed to get it almost working using this in my page template: if(is_page('123') { ...
3
votes
3answers
445 views

Post formats “audio” and “video” only showing in index.php

I have files in my theme called single-audio.php and single video.php, but when I click on an audio post-format or video post-format wordpress uses the index.php instead of my single-audio.php or ...
4
votes
1answer
606 views

Set page template for all pages?

I know the page template is set in the wpdb as meta_key = _wp_page_template and meta_value = template.php. How can I write a SQL script to set each post where post_type = 'page' to a specific ...
-1
votes
2answers
107 views

What defines a post as portfolio page content?

I have three types of content, Posts which I have defined as Blog and categorise accordingly, Slider Images defined by a specfic category, and Pages. I want to have content as portfolio on a profolio ...
0
votes
1answer
511 views

Enclosing Shortcode not working in a Template

I've use the following code for an enclosing shortcode and it works perfectly in the posts. function date_code($attr, $content) { return '<h3>' . $content . '</h3>'; } ...
2
votes
1answer
1k views

how to add a .php file to wordpress

I have a php file in my server (say www.example.com/up/up.php). If i access that file through the url, my site says no page found. but i want to call that php file using url parameter. I want to call ...
0
votes
2answers
432 views

Submitting POST data to a custom page template triggers a 404, why?

I've got a simple custom page template with a form on it. This page can process the form itself, so the entered data gets submitted there as well, using POST. Submitting the form, however, results in ...
0
votes
1answer
124 views

Getting pages filtered by template assigned

I want to retrieve pages with determinate template assigned. Function get_pages() hasn´t any parameter to select by template. For exmaple if I created three pages: Home, Page 1 and Portfolio. After I ...
0
votes
2answers
170 views

Create page template with some static contents

I am new to wordpress. I searched page vs post and found that pages are mostly static contents (in the sense that they dont need to be changed and stays in its place for ever). My question is my ...
0
votes
1answer
420 views

Creating new templates in child themes breaks layout

I am learning how to create new templates in WP. I am using a child theme of Twenty Eleven. My problem is that whenever I create a new template the layout breaks. For debugging I stopped using any ...
1
vote
2answers
749 views

Wordpress ignoring specified template for front page. Why?

I'm using the Roots theme which with custom css. I'm using the page "Home" as the front page the page "Blog" as the blog page (in WP reading settings) I'm trying to set the front page "Home" to use ...
1
vote
1answer
97 views

Unexpected results with conditionals inside template part

Scenario: I have a template part loop-product.php which i am calling from home.php, taxonomy.php and a page template template-products.php. Inside that template part loop-product.php file i am setting ...
0
votes
1answer
273 views

How to hide all child pages with post_query?

i have a page template as start page(home.php). i use a 2 columns grid to display all pages on that home.php with title and excerpt. unfortunately also my child pages are shown and i can't figure out ...
0
votes
1answer
155 views

Fetching Image from other post/page with custom type

I'm building a theme that display image according to a category. Exemple, There a Fashion section, which is a page. On that page I have uploaded photo related to fashion. Another page is Portraits, ...
0
votes
2answers
309 views

Creating Multiple Single Posts for Different Categories [closed]

My current work required me to assign a specific stylesheet/appearance for only one category of blog posts in a WordPress blog. By default, all blog post (single page) will use the single.php to ...
0
votes
2answers
220 views

Pass parameters to static home page brings up index.php latest posts

i have a Wordpress site that has the main page set to a specific template. www.mydomain.com -> main_page_template I am trying to pass in some params to my main URL as follows ...
0
votes
1answer
217 views

How do I create a custom post type for a training CMS in WordPress?

I need to create a custom post type based on the existing 'Page' type, for a WordPress based training CMS. I have no problem simply creating a new post type, but I would like to offer some kind of ...
0
votes
2answers
253 views

Wordpress custom login and register page problem?

I have created custom pages login page and register page in wordpress. My login page has to come when i visit the site. How do i make login page as the first page on the site. And how do i remove ...
0
votes
2answers
285 views

Wordpress single.php different layouts projects / posts

i'm new in Wordpress and I'm currently building my personal website where my works will be published and have a blog too. For the portfolio layout I've looked up this tutorial: ...
0
votes
2answers
309 views

How to make an archive page template using Wordpress 3

I have a suitable page, archives.php, located in the theme's root directory, but I cannot get it to show up as a page template. Is there something else I need to do so that it is recognized?
0
votes
1answer
185 views

Custom Page Template and Category Exclusion

I have a blog (bernsteinbear.com) that uses the TwentyEleven theme. I'm trying to make a custom page template for the front page (a blog page) that gets all the posts except in the "Comic" category. I ...
0
votes
1answer
134 views

How can I allow users to edit text that will be displayed on a custom post type archive page?

I like the custom post types Wordpress offers. Most of the time I like the way that the archive of custom posts is displayed. For example if you have a custom post type of top_hats you can visit ...
1
vote
1answer
905 views

Control Custom Post Type template from a plugin

I can control the custom template to be used on custom post type pages but the template file would still need to have the markup of the theme. I was wondering if I could make it theme independent? ...
1
vote
1answer
403 views

WordPress Custom Search by post_type

I've tried a couple of methods but I cannot seem to filter custom post_types from my search results and was hoping someone could help. I have installed "Job Manager" and created 4 jobs which have a ...
0
votes
1answer
92 views

Custom template not appearing [closed]

When I created a custom template and saved it into my Wordpress theme directory, the option to allow me to select a custom template in my page attributes does not appear. However, when I copy the same ...
0
votes
1answer
130 views

Taxonomies specific to Page attribute template

Edit 2: So having worked a lot on this I have come along way and have a solution that indeed allows me to filter taxonomies by page template, however it isn't very DRY or very flexible. Ideally I ...
0
votes
1answer
38 views

Authors posts on a author created page

Any suggestions/ideas on how to get posts made by certain author to be displayed on a page that same author has created without using author.php? To clear this up a bit, I have a site where author ...
0
votes
3answers
120 views

Single page template

I am trying to create a template for a custom page type that will put the same data on every page of this type. The only problem is I see examples of custom page types but only using loops. Do I have ...
1
vote
1answer
162 views

Adding general page content to page templates

If I'm creating a page template, let's say for example one for a testimonials custom post type I've created, I think I have it figured out that if I do the following in page-testimonials.php: ...
0
votes
1answer
53 views

my basic php code producing unexpected results

I am writing a code snippet to display attachments to a post but for each user, he should only be able to see his own attachments and not those of other users $current_user=wp_get_current_user(); ...
1
vote
1answer
879 views

Pagination on a custom page template

I have set up a custom post type called 'Events'. For reasons that I'm not going to get into, I chose not use archive-events.php as the archive template for my Events. Instead, I decided to create a ...
1
vote
1answer
527 views

Posts archive index pagination in a static page custom query

In WordPress, I have a page for News that is using a specific page template I created. This page is populated by news posts assigned to the news category. I need to show only two of the latest news ...
0
votes
1answer
116 views

Using conditional statements in place of custom Page templates

How do I use if/ else statements instead of custom Page templates? For example, I create content for static Pages that I want to look different from other static Pages. So instead of using ...

1 4 5 6 7 8