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

learn more… | top users | synonyms (1)

0
votes
0answers
1 view

Custom Loop Event Page

I need your help to create a loop in an event page with pagination of 10 posts by page. So I want to do it a little bit complicated. For example with current date May 1, 2015: January 1, 2015 - March ...
0
votes
1answer
9 views

Modifying date filter on admin page for custom post type to link to custom field

Apologies if a similar question has already been asked, but I can't seem to find the exact functionality I am looking for. Basically I have a custom post type (sermons) which has 'recorded_date' as ...
0
votes
0answers
16 views

Custom Post Type only display items created by user

I've used the following tutorial to register a new post type and restrict a custom role to that post type: ...
5
votes
4answers
830 views

WP_Query ignores post_type in category view

I have following query to select posts by my custom post-type. This works fine while being on the frontpage (the snippet is included in the sidebar). As soon it gets executed on a category page the ...
0
votes
0answers
8 views

Multiple slugs for a Custom Post Type

A custom post type can be registered with one slug (e.g. products) register_post_type('products', $args); How can I add multiple slugs to the same Custom Post Type? ...
0
votes
1answer
108 views

WP_Meta_Query object with conditionals

I have a custom post type (Books) that is connected with a second custom post type (People). The Books CPT has an additional author meta box that if checked, it should appear on the additional People ...
0
votes
1answer
118 views

dynamically update permalink and title with the values of custom fileds

Im working on an interface for a custom post type where I need the post title to carry the date and venue name. So on the Admin end I've got js that dynamically populate the title as the user fills ...
0
votes
3answers
401 views

Get custom post type parent category

I'm creating a custom post type like this: function btp_work_register_post_type() { $args = array( 'label' => __('Works', 'btp_theme'), 'labels' => array( ...
0
votes
2answers
21 views

query_posts adding extra code to homepage

I've made a custom post type "brands". I have a custom template that display's these brands on this page: http://www.southernms.com/new/brands/ I also want these brands added to the homepage. So I am ...
2
votes
1answer
333 views

Custom Post Type order by modified date and custom meta field issue

I'm creating a plugin with some kind of offers that users can publish. User, in his custom administration panel, can managed his own offers. Offers are free and premium. If offer is premium it take ...
0
votes
0answers
7 views

Set page to parent for all instances of custom post types

I have a custom post type, like this: $args = array( 'label' => 'project_post', 'description' => 'Project', 'labels' => stuff, 'supports' ...
1
vote
1answer
53 views

advanced search forms with 3 input text and that the main problem 3 input text

N.B. : all my work is on wordpress. I was working for an advanced form with 3 input text in purpose to show a list of hotels. The problem is i tried an infinity tricks and functions but without any ...
1
vote
1answer
19 views

Setting Default Category for Custom Post Type Upon Autosave

I've been searching for a couple hours and consulted multiple posts, but I seem to get this to work. I have this weird bug where users cannot see their drafts of a custom post type if they don't ...
0
votes
1answer
397 views

Change custom post type slug from plugin options

I'd like to give users the option to change a custom post type slug in my plugin. Using this answer, I'm able to hardcode it into a function: Redeclare/Change Slug of a Plugin's Custom Post Type ...
1
vote
1answer
21 views

Custom post type submenu capabilities - custom plugin

I'm trying to add new custom capability so I can hide custom post type from non admins. In my custom post type I have some custom taxonomies and then 2 submenus. The administrator can see the menu of ...
0
votes
1answer
40 views

Create Wordpress bio without backend

I am trying to give users the option to create a user bio, so that it will be displayed in author boxes. However, I do not give my users the option of going through the backend of my website. How ...
0
votes
1answer
6 views

Heirarchical URLs with CPT and custom taxonomy

Having a real hard time getting to the bottom of this, all I'm trying to do is create a perfectly logical URL structure for a custom taxonomy. I have a CPT: 'knowledgebase' I have a custom taxonomy ...
0
votes
1answer
345 views

Custom Post Type URL Change - (portfolio using portfolio categories)

I wonder if you could help me. I'm using a theme which has 'portfolio' as a custom post type. The portfolio items can be categorised in a similar way to standard posts. Currently, theme outputs ...
3
votes
3answers
67 views

Custom Posts Types using Posts Category

I'm using some custom posts types, and, I don't wanna create specific categories for each one. I'd like to use the Post Category in all my Custom Post. Here is a example of my new custom posts type: ...
0
votes
0answers
16 views

Some posts appear in duplicate with paginated query

I'm querying a custom post type with some custom post meta, and then output the results. This is the query: $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $properties_query = array( ...
0
votes
1answer
773 views

save_post custom post type ? $_POST not working?

i have this code. <?php add_action('add_meta_boxes', 'ct_meta_add'); add_action('save_post','ct_meta_save'); add_action('save_post','ct_parent'); // add meta functions function ct_meta_add() { ...
0
votes
0answers
20 views

Why I am getting an alert box on updating an custom post type?

Whenever I click on Update button I always get an alert box displaying "This page is asking you to confirm that you want to leave - data you have entered may not be saved." I just want to remove this. ...
0
votes
0answers
19 views

Adding custom field to permalink structure

I have a wordpress site that uses a custom post type 'external-projects'. Within that custom post type there is a custom field 'director'. What I am trying to do is rewrite the permalinks to include ...
0
votes
1answer
1k views

WP Rewrite Rules - Custom post type & taxonomy

I've been beating my head against the wall for a few days trying to figure this out. I have a custom post type and custom taxonomy and I'm trying to get my URL's to work. Here is the URL structure ...
0
votes
0answers
27 views

Custom Post Type (child) and Permalinks Rewrite Rules

I know this question has been asked a lot of times. However I couldn't managed to solve the issue I have for a few days now so if you could help me it would mean a lot to me. I have created custom ...
1
vote
3answers
3k views

how can I set the post author of a post I just created with php?

I'm using php to dynamically create a custom post, and I need the author to be someone other than the logged in user. I found this ...
0
votes
1answer
12 views

Filter wp_dropdown_categories Per Post Type

I'm using wp_dropdown_categories to add a categories filter to the media library. It works fine, except it displays all the categories that are assigned to posts, but I would like it to only display ...
0
votes
0answers
16 views

Child pages in a Custom Post Type are appearing blank

I've registered a CPT with the following: function create_client_post_type() { $labels = array( 'name' => _x( 'Clients', 'Post Type General Name', 'text_domain' ), ...
1
vote
1answer
80 views

expire wordpress user posts

I'm trying to make classified WordPress theme and I need to make users posts expire date plus show that date into the post. Users only allowed to publish their posts in post-types not as ordinary ...
1
vote
2answers
921 views

Display posts from Custom Post Type in category page on front-end

I created my Custom Post Type (bizdirectory), created a new post (Test Business) and created a new category (Business Directory). But if I add the Business Directory category (slug = business) to my ...
0
votes
1answer
16 views

Show post count number assigned to custom taxonomy

I'm building a villa rental website, I have two custom post types named "Villa" (used to show villas) and "Destination". I have installed the CPT-onomies plugin and I use the "Destination" as custom ...
0
votes
1answer
432 views

Search Custom Post Type & Taxonomies

The site I'm building has a directory element, which has a lot of different business listings; this is a custom post type. It has a Custom Taxonomy called Trades under which are different types of ...
1
vote
2answers
388 views

Date archives for custom post type

I have seen many questions/posts regarding this, but have yet to find a decent solution. Basically I am trying to do what wp_get_archives does, but for a custom post type (personally I am unsure why ...
1
vote
1answer
986 views

How can I make a custom post type sticky?

I installed the "Sticky Custom Post Types" plugin, and I added this code to my function.php: function wpb_cpt_sticky_at_top( $posts ) { // apply it on the archives only if ( is_main_query() ...
12
votes
1answer
5k views

Custom Post Type Templates from Plugin Folder?

I'd like to offer my custom post type as a Plugin, so that people can use it without touching their theme folder. But custom post type templates -- such as single-movies.php -- reside in the theme ...
1
vote
1answer
44 views

How to solve suspected memory issue in custom WordPress loop?

I have written a plugin that adds a "Where did you hear about us?" question to the WooCommerce checkout page and shows the results (as a simple horizontal bar chart) in a wp-admin page. The plugin ...
0
votes
1answer
24 views

How to create custom page templates with default page layout framework?

I'm writing a custom theme. Most of the content will use the regular index.php, header.php and footer.php. The index.php looks like <?php get_header(); get_sidebar(); ?> <div ...
1
vote
1answer
389 views

Filtering custom post type on a combination of custom taxonomies and custom fields?

I have a custom post type "artist". It has an associated custom taxonomy "artist_type" with terms "voice", "actor", "corporate" An "artist" also has custom fields for gender, location, agerangefrom ...
6
votes
4answers
1k views

Where are wordpress custom types stored?

Where are custom types stored? Because when a custom type is created, in wp_posts, the post type is set to the <new_custom_post_type>. But where are the details of the new custom post type ...
4
votes
2answers
653 views

Create permalink structure for one taxonomy archive per custom post type

So, I've been going crazy trying to figure this out. Essentially, I've created two custom post types, 'the_case_study' and 'the_video', with respective slugs 'case-studies' and 'videos'. I've also ...
0
votes
1answer
1k views

forming WP_Query for posts of all post types but from specific categories

I need to get post from blog, custom post type 1, custom post type 2. custom post type 3 and either from category 1 or category 2 or category 3 or category 4 or category 5 or category 6 or category 7 ...
0
votes
1answer
20 views

Custom post type pagination 404

I have a custom post type named episodes_listing and a custom taxonomy named episodes_category. My goal was to have pages like domain.com/episodes/season-one. This works great, and if I have a ...
-1
votes
0answers
17 views

Need help : Sync post types to taxonomies [on hold]

I want to create a taxonomy when i create a post, and create a post when i create a taxonomy, I've tried to install it and using the functions provided in the api.php but nothing worked function ...
0
votes
0answers
17 views

Custom post type clean url

I'm trying to create clean url's for my custom post type, but I can't seem to figure out how to make this work. First I followed the Wordpress codex using publicly_queryable and query_var in my ...
0
votes
0answers
19 views

How to fetch custom post type data with ajax? [on hold]

I want to fetch custom post type data with ajax. For example I have a custom post type eBook. with an ajax call i want to show all Catagories of ebook. When one click on a catagory like Science then ...
0
votes
0answers
13 views

How to register custom post types like ebook and taxonomies with code?

There are more than 10 plugins to create custom post types and taxonomies. But one problem to use that is if accidentally plugin deleted, all works related to that plugin will be deleted.So I want to ...
0
votes
0answers
3 views

Posts 2 Posts Plugin - When saving connection, can it also set the connected post as draft and/or add taxonomy? [on hold]

I have two posts types, Artwork and Return. What I want to be doing is when a single Artwork or multiple Artworks (from post type 'Artwork') gets attached to a single return (from Post type ...
0
votes
1answer
326 views

How to show particular category all post in custom single file

Let me tell details about what I am trying to do, I have one category call Members this category show in custom category file. and in category page show featured images with <?php ...
0
votes
1answer
22 views

Next Post links not working in custom post type shortcode

I'm trying to paginate some custom posts types, and the previous link works, but not the next link. I tried several ways but I'm not able to find the correct one... if anyone could help :) This is ...
1
vote
1answer
649 views

RSS feed for dynamic set of custom taxonomies terms

I've got a CPT called 'Job' and three different taxonomies associated with it: location, type (permanent/contract) and expertise. I've got a filter on the website that allows to search for jobs of ...