Custom Post Types extend the WordPress back-end to support additional, non-Post content.

learn more… | top users | synonyms (1)

0
votes
2answers
34 views

link posts to custom post type

I have a custom post type 'books' which I store different custom fields of information about books. I want to use posts and link the posts I write (in categories such as news, or offers) to the ...
0
votes
1answer
49 views

single-mySlug.php works: archive-mySlug.php does not. Custom Post Type

I am registering a custom post type (listing) with a plugin and it has two taxonomies. It all seems to work as expected. I can display individual posts from the CPT using single-listing.php but I ...
0
votes
3answers
2k views

How to use next_posts_link/previous_posts_link for custom post types paginate?

I have a question about usage of previous_posts_link/next_posts_link. Is it possible to use it for custom post types too? I like to hear from you. Thanks in advance. Casper
0
votes
1answer
80 views

2 language CPT content

I'm working on a CPT Portfolio to present my job I wish to be able to have it in 2 languages but I would prefer not to use an additional plugin since that is only 2 fields that would be in 2 language ...
0
votes
1answer
32 views

Problem with a query in custom posts

I'm making a search form to select available rooms. I have a custom post for the rooms called "Products" and a post meta value called "availability" (format: Y-m-d). And I want to find all rooms ...
0
votes
1answer
384 views

Custom post-type's pagination not working in category.php

I have this code to the file category.php : <?php get_header(); ?> <div id="content"> <div id="all"> <div id="todo"> <?php $my_query = null; $paged = ...
0
votes
2answers
42 views

how to create a post type like comments

I want to create a post type but don't allow to create new item on the back-end, the item of this post type can be only created on the front-end by the user. How can I do this? Thank you
0
votes
1answer
81 views

Targeting specific Page Template for sidebar page

Currently, there is a sidebar dedicated to all posts, and one for all pages. What I would like to do is target specific page templates to display sidebars for each template. if(is_front_page()) ...
0
votes
1answer
86 views

Generate daily archive whenever any post type is added

We have an issue with our date archive in WordPress, where our daily archive (example address www.xxx.com/2013/01/09) is only generated when a post from the default post type is added. Any day where a ...
0
votes
2answers
70 views

Adjust layout most recent post, taking pagination into account

I'm displaying two posts on my main page, and using post pagination to go through the older posts. My problem is I want to change the layout a bit of the most recent post. This sounds like a very ...
0
votes
2answers
136 views

Paginate yearly archives for a custom post type

Here's the code I'm using to create yearly archives for a custom post type: function myquery_custom_post_rewrite( $rewrite_rules ) { $myqueryslug = 'customposttype'; $month_archive = array( ...
0
votes
1answer
383 views

Custom post type navigation - 404 on page 2

I have a custom post type portfolio and now I'm trying to enable navigation for the template where 10 portfolio items are shown. I'm using the following code to query the posts: if ( ...
0
votes
2answers
422 views

Post Type => Any conundrum

I have a number of regular posts and pages in a regular category called "Featured". I have also installed a plugin called "Event Organizer" that creates its own custom post type called "Event" and has ...
0
votes
1answer
171 views

Taxonomy Url with Custom post type prefix re-write rule

I have a taxonomy called Section and a Custom post type called Developments. What i need to achieve is a permalink on the taxonomy with custom post type prefixed: e.g: custom post type: development ...
0
votes
1answer
81 views

Dynamically change post_parent in every page load?

What's the correct Wordpress action where I can hook to dynamically change the post_parent of a post? I understand that a post can't have multiple parents so that's the only way I can think of to ...
0
votes
1answer
242 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
2answers
1k views

Update content of multiple pages/posts at once?

Is this possible? using shortcodes? Custom post type? Custom Fields? CSV upload? Unique content per page. Do not need to create new pages, Just update body of them. Seems like a tough one? Also can ...
0
votes
1answer
206 views

Redirect page to first post in custom post type

I have a page, let's called it "Artists", that displays a list of posts in a custom post type, again "artists". How can I redirect pepole who visit the Artists page to the first post in the "artists" ...
0
votes
1answer
26 views

Query by post type or category

I now that WP_Query can query by post_type and category but i need to get data from custom post type or from category which is standard post type. Adding category to my custom post type is not an ...
0
votes
1answer
81 views

Page that 'subscribes' to multiple categories

I'm creating a website where I need to 'subscribe' client Pages to certain categories. For example: On example.com/client/johnson-co/ show all posts in the categories 'GST', 'Estate' and 'Tax ...
0
votes
1answer
108 views

Two different archive pages showing the same content

I'm trying to use Query Multiple Taxonomies with Ajax. It works with Ajax and it works without it. But unfortunately not at the same time. Basically I need an Archive page to show only the posts of ...
0
votes
2answers
44 views

How to setup different permlalinks for posts and pages?

I'd like to setup: www.mydomain.com/a-page/ www.mydomain.com/blog/category_name/ www.mydomain.com/blog/category_name/post_name/ www.mydomain.com/custom_post/post_name/ How would I do it? Thanks in ...
0
votes
1answer
73 views

Pulling in a particular post into a single page based on the post id passed into the code

I currently have a page on a site that I am developing and that contains a loop which loops through 4 posts contained in a custom post type called Treatments. ...
0
votes
1answer
52 views

sort custom post type by display name

I am trying to sort my custom post type in a few different ways using a dropdown. When I try to sort it as the display_name it doesn't work. $wp_query = new WP_Query(array('orderby' => ...
0
votes
1answer
164 views

Order custom posts by taxonomy?

I have the following custom post types: books, documents, examples, guidebooks, onlineaids. They were generated by the following code: ...
0
votes
1answer
137 views

Canonicalization + Custom Post Types not working as expected

I have an issue with Canonicalization where on Custom Post Types say for example: /custom-post-type/{post_id}/fake-post-name/ is loading up but not redirecting to : ...
0
votes
2answers
175 views

Problem with custom post type search

I built a custom search with the following code: functions.php function template_chooser($template) { global $wp_query; $post_type = get_query_var('post_type'); if( ...
0
votes
1answer
50 views

Allow certain part of a page to be easily updated for client?

My client has asked me to create an about me section which will include a picture, job title and description for each team member as floated elements. They also want it to be as easily updateable as ...
0
votes
1answer
183 views

Custom role, capabilities, and post type: preview button wrecks things

I'm using the Members plugin to manage capabilities of a custom role that will only be able to edit/publish a custom post type that I created in my functions.php file. After much work, I got this ...
0
votes
2answers
58 views

Most efficient way of deleting post

I have a cron job set to remove a (sometimes large) number of posts from my database. Of course, I also need to remove all associated data such as custom fields. This is the function I'm currently ...
0
votes
1answer
38 views

categories of custom post type shows in CMS but not in the frontend webpage

I have created a custom post type "Events" and added the categories function for it. However, the categories only shows in the backend CMS which I can set and add new categories, but no message ...
0
votes
1answer
194 views

wp_query and comment_parent - select only posts with top level comments

I have a custom post type of 'films', and I'm creating a number of search filters using wp_query. All are working fine, but I now need to add in an option of exclude results that dont have any top ...
0
votes
1answer
39 views

Problem with menu categories doubling up when updating database?

I imported a database from a website to my localhost and the menu categories started doubling up. The wordpress dashboard is also missing my custom post types. How can I solve this?
0
votes
1answer
31 views

Custom Portfolio String

I have a field on my portfolio admin page which shows the url when the user write a url(obviosly). I want to when the user write in the field, elements appear along with it. And if the field is empty ...
0
votes
1answer
39 views

Noob Loop Question

I come with a basic question but I can not solve, I think that will be easy for you. I would like, if I have 2 or more post on loop, show the entire loop. I tried the following: <?php $paged = ...
0
votes
1answer
79 views

How can I make my custom posts appear in their assigned category url?

I am trying to solve this problem: I created new custom post types. When I create a post and assign a category (lets say category-1) to it, and when I try to visit the category-1 url, it appears ...
0
votes
1answer
76 views

Creating shortcodes with user created forms

I am creating a plugin. That enables users to create forms, & display these with shortcodes on a site. When creating a form (using custom post types), users will be able to add additional form ...
0
votes
2answers
192 views

Top Contributors Plugin with Custom Post Type

I am using the plugin Top Contributors. That's very helpful for all blogs. But the problem with this plugin is: it is not integrated with custom post types. How could I extend the plugin to do that? ...
0
votes
1answer
137 views

Loading one meta box only on post-new.php with a forward link

I need to load a meta box for editors to choose the parent post first before editing. But dont see the wide meta box i expect and the normal edit page just loads: This is the code at the begining of ...
0
votes
1answer
123 views

Categories and page filtering with pre_get_posts

I have 3 pages, "Page 1" shows custom post-type "articles", "Page 2" shows custom post-type "tips", and "Page 3" shows both custom post-types. This is done conditionally with a custom loop in ...
0
votes
1answer
303 views

Custom My account page and custom page for editing posts

I have created WP theme for property company, with custom post types which are actually apartments so users can from one custom page enter all the informations and the custom post gets saved. I ...
0
votes
2answers
420 views

How to enable parent-child relationships and post attribute admin widget for posts

I want to be able to select a parent post when i create a new post. I assume it should be easy just to make the 'page attributes' admin widget to work similarly for posts too. The use case is for ...
0
votes
1answer
36 views

Custom Post Type post not appearing

I am new to WordPress. My problem is that I created a custom post type named Atividades and when I create a post, it does not appear on the website. // fuctions.php add_action( 'init', ...
0
votes
1answer
37 views

Filtering problem

I got the custom_post_type_data in which I store some variables when I make a new post. Variables likes Author, Price etc. I implemented a filtering by author, so when you click on James (for ...
0
votes
2answers
288 views

Custom post type paging 404 error

I've an issue on custom post type, I've create a custom post type called "Agenda" and the rewrite url for http://example.com/agenda it works correctly, it points to the archive-agenda.php template ...
0
votes
1answer
159 views

Option to feature custom post type on home page

I am wondering what's the best way to give a user the option to feature a custom post type on the home page. I have a Case Study custom post type and some of them need to be feautured on the home ...
0
votes
1answer
43 views

Top 30 Songs using Custom Post Type

I have successfully created a Top 30 songs ranking via custom post type. Now im stuck with adding "Peak Position" post meta. I don't know how to program it. Peak Position is the position where the ...
0
votes
1answer
676 views

Disable feeds for specific custom post types

I want to remove the feeds for specific custom post types. Most recommended methods are not clean. There seems to be a option called $args->feeds but this does not work within the ...
0
votes
2answers
32 views

Is There A Way To Add Another Field To Custom Post Type (Not Custom Field/Meta)?

Maybe I'm not getting the whole concept, but is there a way to modify a Custom Post Type so that it includes other 'fields' like a 'real' db table. I don't mean a Custom Field (get_meta)... I mean ...
0
votes
1answer
43 views

How to insert post into a page?

i created a custom_post_type: add_action('init', 'event_register'); function event_register() { $labels = array( 'name' => _x('Pacotes', 'post type general name'), 'singular_name' => ...