Tagged Questions
0
votes
1answer
45 views
Custom post type archive and single.php files not working
Hi I've created a custom post type called shows.
here is the code for it.
<?php
add_action('init', 'show_register');
function show_register() {
//arguments to create the post type.
...
0
votes
0answers
31 views
Pagination not working on page
Edit :
Toscho said this was a duplicated question and gave me a link
Pagination not working with custom loop
I checked it out and followed the steps but this is not working for me.
Right now. when i ...
1
vote
0answers
26 views
next_/previous_post_link() `in_same_category` appears to fail when true
I'm using the Modernize theme's custom Portfolio type page. In the single-portfolio.php template, I call next_ and previous_post_link(), which correctly display links when in_same_category is set to ...
0
votes
1answer
61 views
Using custom post types within a section of a template
I'm trying to get the hang of custom post types and I am trying to get them to loop through the post types within a page template. I'm already using the MultiEdit plugin to display certain content ...
0
votes
1answer
50 views
Page Templates - this code only works for one Custom Post Type
I have the code below in my functions.php file, it works great and allows me to use page templates in my custom post type 'services'.
I have defined which 'type' to use on the first line with ...
0
votes
1answer
70 views
Multiple templates for single custom post type
Does anybody know of a way to modify the wordpress template process so that a single custom post type can be displayed on two separate templates based on the value of a custom field.
For example I ...
0
votes
1answer
118 views
How to Loop and add Specific Categories and Products Images into Specific Page Template?
Thanks to Rafael Marques I have a list of Products and Categories organized based on different created categories. I also have 5 different Custom Page Templates. Now I would like to display the ...
0
votes
2answers
120 views
Custom-Posttype & Custom Taxonomy WP_Query
I add a custom post type with custom taxonomy and i wish to get all postings into this by a template, but the result is 0
$args=array(
'post_type' => 'contents',
'post_status' => 'publish',
...
1
vote
2answers
128 views
How to sort list of custom posts to get view like a tree of posts under categories and their children's categories?
I'm new here and my english isn't perfect so I'm sorry for this :) I'm here because I'm workin on site with post list sorted by category and I have problem with sort out my posts in categories and ...
2
votes
1answer
119 views
Create second custom 404 page for selected post type
I created a new custom post type called event, which works fine.
I also created a custom 404 page template, which is shown if a event/page/post is not found.
But now the hard part, i want to create ...
1
vote
2answers
173 views
Page template with different page and post content
I am using a wordpress theme which has a page template named roomtypes. I am not a php pro but as far as I understand this template gets the posts. When I add a Room type, it is created as a post with ...
1
vote
1answer
81 views
Custom page sidebar using Template dropdown box
i am wondering how i go about making a Template for some of my pages to use a different sidebar? I have created the widget like this:
register_sidebar(array(
'id' => 'ourPat-sidebar',
...
0
votes
1answer
69 views
custom post template ignored after altering permalinks
I've built a site with a custom post type called Testimonials and am using a custom template to display the posts edit: template name is page-testimonials.php.
All is working as expected with the ...
0
votes
1answer
70 views
How do I paginate a custom post type listing on a custom template page?
I've got a page template called tpl-memos.php which is attached to a page called 'Memos' with a parent page called 'About', the permalink for the page therefor is example.com/about/memos. On this page ...
0
votes
1answer
140 views
Custom Post Type order Title ASC
I´d like to display all car manufacturer in order by title (e.g. "Merecedes") and order from lowest to highest values (e.g. "A-Class") "ASC", too. It should looks like a glossary.
Page: Cars
A
...
...
3
votes
3answers
341 views
Setting a custom sub-path for blog without using pages?
Warning: fairly pedantic request ahead.
I have a design that makes use of posts (I.e., the blog) and a custom post type called "howto". The site front page ("/") has a template that displays the ...
0
votes
1answer
291 views
get tags from custom post type
I have a custom post type called "portfolio" with 2 registered taxonomies : portfolio_category and portfolio_tag.
I'm using a custom theme that use a lot of javascript/jquery.
So this is how the ...
1
vote
3answers
2k views
Custom Post Types, Page Templates and Pagination. Why do I get a 404 Error?
I have spent hours today on a maddening issue I was having with displaying a custom post type. Everything displayed beautifully, except the pagination simply would not work properly.
I have a ...
1
vote
1answer
70 views
How do you create a custom template to display a category with an image and related posts below?
I am trying to create a custom template that can give the following effect...
Category Name A (with image)
post with category name A
post 2 with category name A
post 3 with category name A
...
2
votes
1answer
815 views
Multiple portfolios with one custom post type?
I wonder what's the right way of creating portfolio website (with as many portfolio pages I want). Usually I create page template that displays posts with category = Portfolio or with posts from ...
2
votes
1answer
50 views
After updating a page, all pages on the site used the index.php template
I am having a strange problem with a site I am currently building. I will try to give as much detail as possible in the hopes that somebody is able to figure out what is causing this :)
Overview of ...
1
vote
2answers
1k views
Pull in custom content types into page template
I've looked everywhere for a solution, but have yet to find one. Here is the situation. I've created a custom content type using the plugin Custom Content Type Manager and now have need to use these ...
1
vote
2answers
155 views
Using custom page templates with plugin
I'm developing a plugin. This plugin creating a new post type and displaying these posts in a custom template.
For example it's a event calendar plugin. This plugin creating a new post type 'event '. ...
0
votes
1answer
532 views
Custom Post Type page template doesn't show up
I created a custom post type called portfolio. I also created a file called single-portfolio.php to display the portfolio content.
When creating a portfolio post, the template I want to use doesn't ...
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
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
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 ...
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 ...
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
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
904 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 ...
1
vote
1answer
876 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 ...
0
votes
1answer
756 views
Using get_terms() to list terms from one custom taxonomy AND from one specific built-in category
I'm trying to get the terms of a taxonomy (kind) and the number of content they have but only for a specific category (get_parent_page_slug() = city name = category slug). This is what I have so far:
...
0
votes
2answers
115 views
IE messing up template for custom post type [closed]
Ok so I know you're thinking this is a CSS thing and not wordpress related but please read through and look at the examples I'm talking about first. I'm not saying it's not a CSS issue, but there's ...
0
votes
1answer
301 views
Display ONE taxonomy and its assigned pages
Quite a straight-forward question but I haven't been able to find a solution. I have created a page which lists categories within a taxonomy called 'Themes'. I now want each link in the list to point ...
0
votes
2answers
300 views
Display custom post type from template
I have this template file called Events. The purpose of this file is just to display the latest post with custom type Event. I have solved it with a very ugly solution. There must be a simpler and ...
1
vote
2answers
569 views
WordPress keeps fetching the archive page instead of the template page
I have a template set up and I've created a page in WordPress and have chosen the corresponding template in the drop down. I have created templates for several pages of this site and they've all ...
1
vote
3answers
557 views
What are the differences between custom post type and custom page templates?
What is the difference between custom taxonomies and page templates and custom post types?
I think I understand that taxonomy is used to organize data. CPTs are used to give your data a different ...
1
vote
1answer
784 views
Created custom post type but selected template not staying selected
I have registered a new post type called Resources. I specify 'page-attributes' as a supported feature. When I go to create a new Resource post I see under Template that I can pick from a number of ...
0
votes
1answer
939 views
Custom Post Type Template Based on Page Slug?
I have a hierarchical custom post type (missions) setup. I want to create a few child pages for it (discuss, petition, educate), but I want each of those child pages to display a different template.
...
1
vote
2answers
78 views
Troubles with making a custom template for posts
Is it possible to make a template for all posts in a custom post type? For example I would like to be able to change an adsense ad or some other element on every post by simply editing a custom ...
0
votes
1answer
257 views
Creating a Page to View the List of Posts for a Custom Post Type?
(Moderator's Note: The original title was "viewing custom post types")
I've setup a custom post type called 'recordings' with a custom taxonomy called 'themes':
add_action('init', 'recordings');
...
2
votes
1answer
1k views
How to quickly switch custom post type singular template?
I have a custom post type called movies and I need to quickly switch the template that displays the movies cpt on the front end via a link. How can this be done?
Files I have:
single-movies.php
...
1
vote
1answer
366 views
How to load a template without it being assigned to a page/post?
Can I create a template and load it without associating a page/post to it in WordPress?
The template will list custom posts in XML.
[update]
I have a jquery carousel that loads an XML file through ...
2
votes
1answer
1k views
Take Variables Set in Functions.php and Echo Them Inside My Custom Post Template
I have the following function set up in my functions.php file to allow my custom post type "Slideshow" to work.
add_action( 'the_post', 'paginate_slide' );
function paginate_slide( $post ) {
...
1
vote
1answer
1k views
WordPress custom post type Single.php?
I have a WordPress custom post-type setup. I've created
single-[customposttype].php
However instead of displaying only the requested custom-post-type it goes to the URL, then displays all of the ...
4
votes
1answer
526 views
Creating a Custom Post Type for Inserting Preset Content into Post & Pages?
In response to Mike Schinkel's comment (see below) on my post about how to pre-populate content (essentially using a content template)...
@Scott B I mean why did you support a
file on disk ...

