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

learn more… | top users | synonyms (1)

0
votes
1answer
23 views

Wordpress post count not showing for custom post type author

I've created a few custom post types based on Dave Rupert's boilerplate and then migrated existing posts to these newly created CPTs via Post Type Switcher plugin. I did not make any changes to the ...
0
votes
0answers
15 views

password protected custom content type

I have created a custom content type called 'clients'. When I create an individual 'client' page I can add a password with visibility/password on the right hand side The clinet pages have a ...
0
votes
1answer
32 views

list posts of two post types in a single template

I have two post types. One is post & other one is event. Both sharing same categories & tags. I am listing the posts by archive.php. Now I am listing the posts as general by two different ...
0
votes
1answer
12 views

Show all post of a taxonomy with one specific term not working

I have a custom post type "restaurants" and a taxonomy "location", so I can get the restaurants for one location by URL. On the taxonomy page for one specific location (CityA) I want to display all ...
0
votes
1answer
15 views

If taxonomy show class of active

I have a nav which I would like to detect if an li should have a class of active or not. I usually do this for a normal page like this: <li <?php if ( is_page('about')) { echo ' ...
1
vote
2answers
478 views

How to set up an entity (post-type?) with many dependent entities (more post-types?)

I want the wordpress CMS to manage a new type of content called Athletes. The data structure for Athlete would be as follows: Athlete.name Athlete.date_of_birth Athlete.profile etc... An athlete ...
0
votes
0answers
9 views

Custom post types as categories for another custom post type

I have a custom post type of companies that contains company details, I would like to setup another custom post type of news, with each news post being associated to one of the companies. Is it ...
0
votes
2answers
33 views

How to make a template for a specific post of a custom post type?

For the Page post type: I can create a logout page in the CMS and create a page-logout.php for its template. I created an Account post type but I can't use account-user-registration.php for a User ...
2
votes
1answer
429 views

Admin Area Custom Type Search By Meta Fields Without Title & Content

I have a custom post type that uses several meta fields. In the admin area I would like to be able to search by those meta fields. I have implemented this currently in my functions.php with this code: ...
0
votes
2answers
396 views

Loop to fetch 3 post_thumbnail instances from 3 most recent custom post types named “portfolio”

I am trying to display 3 post_thumbnails from a custom post type "portfolio" on my homepage template. So one from post 'A' , one from post 'B' and one from post 'C' The image from post A will be set ...
3
votes
2answers
239 views

Populate Taxonomy from Custom Posts

I have a custom post I am looking to categorize via a custom taxonomy. The taxonomy itself I want to be dependent on the items of another custom post type. Is it possible to populate a taxonomy via ...
0
votes
1answer
21 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 ...
0
votes
1answer
800 views

Conditional two level dropdown filter for custom post type

I have set up a custom post type and taxonomy. The post type is called Local Services and the hierarchical taxonomy is called Regions. The Regions have child categories called Areas. I have set up a ...
0
votes
1answer
508 views

Custom Post Type permalink shows wrong page: homepage/index.php

Hello I am working on a project where I need to have custom post types. Creating the post types and making them show up in my admin menu was a walk in the park using the following: add_action( ...
0
votes
0answers
13 views

WooCommerce Custom Post Type Support [closed]

Currently I'm using WordPress along with WooCommerce to create virtual products. I also have custom post type called "properties" added by the plugin. What I want is to integrate WooCommerce to ...
-1
votes
2answers
29 views

show all custom posts types in home page

Hi i am working on custom post types in wordpress presently we are using below code to display the custom posts, but the thing is the custom post types are keep on increasing, add_action( ...
1
vote
2answers
515 views

Custom Post Type Taxonomy Filters

Im really struggling to piece this functionality together, and hope someone can help or provide snippets to get me there. So I'm creating a section on a website where stories are published, I have ...
0
votes
1answer
30 views

wp_list_categories and custom post types

I'm confused. I have a custom post type "asset". I created posts, and they are all at /asset/post-title I assigned categories to the custom post type, e.g. "patterns" The categories page shows the ...
1
vote
1answer
45 views

Post format alternative?

The client wants to attach one of several "formats" (publication, briefing, press release etc.) to a post. It seems unnecessary to create custom post types as they all have the same fields. As post ...
-1
votes
0answers
12 views

Sort posts my custom fields [closed]

I'm wondering if there is any plugin that would allow me to do it. I also posted a picture to explain it a bit better. Basically I want to sort posts or specific post types when a user selects some ...
0
votes
1answer
22 views

How do I alter the position of a Custom Post Type menu item within my plugin admin menu?

I'm writing a plugin (for the first time, so bear with me!) which includes a custom post type; 'Programmes'. In the admin menu, I've set up a new menu group for the plugin, and I have the 'Programmes' ...
2
votes
2answers
1k views

How to remove Filters from post admin page?

On a custom post type, I want to remove the filters that show up on /edit.php (where all of the posts are listed out). I have a custom taxonomy that shows up as a filter that I WANT to keep, but I ...
0
votes
1answer
1k views

Rewrite rules for custom posts types

So I created a new post type 'quote'. Basically I want to change all quotes URLs to domain.com/quotes/ID since as it as right now (/?quote={xxx}) could get pretty long, and since this post type is ...
0
votes
3answers
663 views

Wordpress 3.9 not using custom template

I upgraded my Wordpress from 3.8.1 to 3.9.1. I am using the magic-fields-2 plugin for custom data, I have created a custom post type and a custom template for displaying single posts of that type. ...
0
votes
0answers
14 views

How to add Publicize support for portfolio type of Virtue theme [closed]

I am trying to add support for Publicize - a feature of Jetpack - in the theme I am using - a modified version of the Virtue theme. There is a file lib/init.php in the theme's root directory that ...
0
votes
1answer
22 views

Grab all Custom Posts by multiple taxonomies and terms

I have 4 custom taxonomies with multiple terms for a "Members" page. I have a taxonomy of "location" and "organize" that I'm trying to separate into a list. I need to grab all posts by the ...
0
votes
2answers
55 views

Can you get the themes options page to turn on/off which custom post types are registered?

I have a theme that is being used for a multisite installation that will be used by 6 sub-brands of an organization. Each sub-brand will only require some of the custom post types set up by the theme ...
3
votes
1answer
5k views

Custom Taxonomy specific to a Custom Post type

I want to create a custom taxonomy which behaves similar to the post type as a category behaves to a the default posts (on the grounds of /%category%/%postname%/ permalink structure) so that the posts ...
2
votes
1answer
587 views

WP_Query() show posts that end later than today

I have a query as follows: $wp_query = new WP_Query( 'meta_key' => 'end_date', 'meta_value' => 'today', 'meta_compare' => '>=', 'post_type' => 'vehicle' ); ...
0
votes
1answer
29 views

Best way to structure article and issue relationship for CPT

So I've got an area of a new WP site I'm building that has a requirement for an Issue and Articles and I'm not entirely sure on how to structure it correctly. Think of an Issue like a magazine issue. ...
1
vote
1answer
65 views

How I upload, save and set a featured image from my frontend?

I have a form in my site. This the user register one missing person. I created a custom post type missing person, custom taxonomies and custom fields. All this input's save as well in wp. But I ...
0
votes
1answer
21 views

Problem to show custom post type in archive page category wise

I was facing problem to show custom post type post category wise. Then i found to solve the problem . i wrote below code in function page : function my_blog_category( $query ) { if ( ...
0
votes
3answers
38 views

Targeting custom post type

I have the following loop working as I want it but I need the 'activists' list item to include <?php the_post_thumbnail(); ?>. What would be the best way to write this? <?php ...
0
votes
2answers
44 views

List of users that clicked a 'Join' button at single post

The title might be a bit vague while I'm not quite sure how to describe it. What I want: At every single post (in this case of post type 'event') a logged in user must be able to click a 'Join' ...
0
votes
1answer
57 views

Is it possible to make tag archive page specific to Custom Post Type?

I want to create a tag archive page (or template) specific for some custom post type(CPT). I am little new to PHP and Wordpress, by the way. In my environment, I have CPT portfolio and custom ...
1
vote
1answer
463 views

Custom post status and preview

I am using wordpress 3.4 (the last before 3.5) and I have declared a post status type, and a custom user role called agent. It is for a custom post type, property. register_post_status( ...
0
votes
2answers
228 views

404 Error On Custom Taxonomy Pages 2, 3, etc

I've been reading a bunch of posts about this with no luck so far. I can't seem to figure out what is the problem. I have the following: Custom Post Type: Sermons Custom Taxonomy: Series My urls ...
0
votes
0answers
12 views

category results within page template

to paint a clear picture of what i am trying to achieve, i will describe my current wordpress theme setup: in my theme, i am making use of the following content types: posts, pages and custom content ...
0
votes
1answer
443 views

Issue displaying multiple TinyMCE editors with WPAlchemy

I have a custom post type with a WPAlchemy admin meta box class including multiple textareas with TinyMCE editors(for adding content to the custom post template). I've gotten the editors to display ...
1
vote
1answer
548 views

Sort posts based on multiple custom fields

I have a three custom fields Meta Key → YOUR_PREFIX_newcar_body_type Meta Key → YOUR_PREFIX_newcar_transmission_type Meta Key → YOUR_PREFIX_newcar_variant and I have to sort posts ...
1
vote
1answer
652 views

Get all posts from custom post type and insert in select input as metabox

I would like to know if its possible to do something like this. I have Slider custom post type and Services custom post type. For slider posts I have created a metabox for URL value to display next ...
2
votes
1answer
249 views

wordpress custom post types and permalinks

I have a custom post type called Content, that has a capability type of 'page' and is set to 'hierarchical' => true. I have two pages with the same name "Children", but they have different parents. ...
0
votes
2answers
372 views

How to query the content of a specific custom post type?

I have created a custom post type called "Single Neighborhood" in it i have 5 custom fields: Background Color (color picker) Background Image (image upload) Latest news (WYSIWYG editor to list ...
0
votes
2answers
42 views

Taxonomy Grid Archive Help?

I need some help. I would like to make a custom taxonomy archive that shows a grid of the terms(categories) in the taxonomy. I know how to accomplish the grid portion, but I'm having trouble with the ...
2
votes
1answer
642 views

Using custom post types in submenu + custom title

I'm planning to use a couple of custom post types for a plugin of mine. The whole plugin should reside under 1 toplevel menu item. Thus I would prefer a menu structure like so: Dashboard Posts [...] ...
0
votes
0answers
27 views

Show Custom Post id in shortcode button on tinymice editor

I have created a custom post Testimonial for my custom theme and i have to display posts using shortcode , i want a shortcode button on tinymice editor so i create a js file for shortcode button Here ...
0
votes
1answer
46 views

Passing postid of Testimonial Custom Post in Shortcode Parameter

I am trying to create Testimonial custom post and display using shortcode function create_post_type() { register_post_type( 'testimonials',//new post type array( ...
0
votes
1answer
31 views

Correct way to make meta box with more than one meta field secure

I used several online tutorials to make a plugin that has a meta box that contains more than one field. It seems to work fine and save the data however I just want to ensure that my plugin is secure. ...
0
votes
0answers
12 views

How do I create a system to track logged in users' views each time an individual CPT post is viewed?

I have a custom post type created in a plugin I'm working on, using Piklist (as I have a lot of other things I can use it for in this project, in general). So my first step would be to create a table ...
0
votes
1answer
25 views

can register_post_type() be safely called before init

If I call register_post_type() before the init action, will my plugin explode in a ball of fire under some circumstances? Codex says: register_post_type should only be invoked through the 'init' ...