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

learn more… | top users | synonyms (1)

0
votes
0answers
44 views

Pulling Content from Existing Database

I am moving an existing site to wordpress. The existing site already has thousands of rows of data (items for a shop) stored in a different database. I dont want to import this data directly into ...
0
votes
1answer
57 views

Exclude Custom Post Type from shared Custom Taxonomy

I have a few custom post types and two of them are sharing a custom taxonomy. Is there a way to list the terms of that taxonomy for only one of the custom post types? At the moment I can get a list ...
0
votes
0answers
16 views

Cron Job to Delete over 30 days old post from post type

This is my first time creating a WP cron job and I would like to have someone else review it for mistakes. I wrote this cron job to delete temporary wishlists that are over 30 days old. The wishlists ...
0
votes
1answer
18 views

Items By Group added to custom post type

Ok, not real sure how to explain this. But i have an existing custom post type with some custom fields that is working fine for detailed information about an event. what i am trying to do now is to ...
0
votes
1answer
29 views

Get child terms of current term of the current post

I have custom post type "product" and taxonomy is "product_cat". There are two child terms -Music and videos. Under Music i have two more child terms albums and single. Now when i go to music category ...
0
votes
0answers
12 views

Custom post type plugin archive page doesn't work?

Hi i am creating a custom post type plugin. In that i have added a custom archive template and single page template. The single page template works fine whereas archive template is not working. ...
0
votes
1answer
26 views

How to Include Custom Post Content From Plugin

I am currently working on a plugin that creates a custom post type. The post type has various meta fields which are used to display the content. I am struggling trying to determine how to display ...
0
votes
0answers
15 views

Autogenerated Title for Custom post type loses title when trashed/deleted

I am generating title for a custom post type using the following code. It takes the $fname, $mname, and $lname values and generates a title based on the post. This works fine for custom post creation ...
0
votes
2answers
34 views

Frontend Form for Custom Post Type

I want to add frontend post to custom post types. Till now I have figured out how to do it but only to the regular post type(not custom post). I am using this code. (Couldn't paste it here hence ...
0
votes
0answers
38 views

How to add jquery to my custom post type wp plugin

I want to include a jquery to my wordpress custom post type plugin which i have created. i have two doubt,,, the jquery script will work only on widget options (i.e) Sidebar. So when i use the ...
0
votes
1answer
65 views

How do display gallery embedded to the custom post type

I have a custom post 'events'. For each post there is a gallery attached. On a main galley page i am displaying featured images from each post . Now i want that when person clicks on this featured ...
0
votes
0answers
8 views

Renaming CPT slug when the user access a page from one specific taxonomy

How do I rename a registered CPT slug when the user access a page from one specific taxonomy? I have a custom post type called /package/ and it taxonomies /america/ /europe/ /asia/ /hotel/ An ...
0
votes
0answers
31 views

Wordpress list child pages of custom post type

Im stuck on this and any help would be appreciated. Say there is a parent page called "Stuff". And Stuff has several pages under it. Stuff more stuff more stuff1 more stuff2 It has no children ...
0
votes
0answers
20 views

how to make separate category term archives by post type

I've searched around, and many others are struggling with similar questions that don't seem to have been answered well. So please help reduce this misery! Suppose you've got an off-the-shelf ...
0
votes
0answers
27 views

Looping Next/Prev Link for custom post type

Strange error with custom post type next/prev. Trying to ge tthe first post if youre on the last one and the last post if youre on the first one. The posts per page is set to 100 but it seems to only ...
0
votes
1answer
18 views

Custom Template for wordpress cpt plugin

I am creating a wp custom post type plugin. Which supports the custom meta datas as well.Now my question is i have to create a archive page with custom template file. I have added the appropriate ...
1
vote
2answers
46 views

Custom query works but returns “Undefined Offset: 0”

My custom query works, except when debugging it throws off an error: Undefined Offset: 0 in /wp-includes/query.php This is what my query looks like : <?php $loop = new ...
0
votes
0answers
41 views

Trying to access custom post redirects to home page

I just started using WordPress and it seems I need more practice and advice to make it behave the way I want it to. I inherited an already working site from another guy. Now I have to actually add new ...
0
votes
1answer
38 views

Multi Parameter search with custom post type category and tag

i have a custom search which will have 3 inputs (dropdowns) , the html code of the form is ready and will use GET in url , now the remaining part is using values from url to run query. Parameters ...
0
votes
0answers
37 views

WP_Query wooCommerce category

What is the favored way for searching for a certain category in wooCommerce? Or maybe only checking if it is existent already? My approach for this was: $searchCat = new ...
-1
votes
1answer
34 views

Get custom post type where taxonomy..

I am not sure how to fetch specific custom post type where taxonomy is for example february. Generally I'm trying to have custom data based on months. Registering custom post type add_action( ...
0
votes
1answer
19 views

Have two (permalinks) urls for a same custom post type

I have an specific situation which I´ll try to explain. In the website I developing right now we have fairs (event) and every fair has a profile page. Lets call ns_fair custom post type and its loaded ...
0
votes
1answer
32 views

Display latest posts of author in a custom post type

Is there a plugin or code of sort that can display the last posts in a custom post type of a blog author? I know there are plugins/codes to display the last posts of the author, but I want to display ...
0
votes
1answer
23 views

Wordpress custom posttype meta values doesnot save

I am developing a wp plugin which supports custom post type in that i have create a metabox everything goes well.When i enter the values in my metabox field it will not display in admin panel where as ...
2
votes
1answer
112 views

Have different number of posts on first page

I need to have a different amount of posts per page on the first page that on the other pages. For example, this is what I need Total posts: 6 First page: showing 3 posts Following page: showing 2 ...
0
votes
1answer
36 views

Use different post formats on different post types

I added post-formats support like below. add_theme_support( 'post-formats', array( 'gallery', 'link', 'quote', 'audio', 'video' ) ); I also added post-formats support to custom post type like ...
0
votes
0answers
24 views

Custom Role can't trash Custom Post Type

I have a post type that I set up some capabilities for and I attached them to a new Role, however, the role can not trash them. I'm not sure why though. Here is the portion of my array for the ...
0
votes
1answer
43 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 ...
-1
votes
2answers
39 views

Show only public custom posts in home page

Hi i am working on custom post types in wordpress presently we are using below code to dispaly all custom posts in home page <?php $args = array( 'public' => true, '_builtin' ...
0
votes
1answer
36 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
13 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
0answers
10 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
1answer
21 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 ' ...
0
votes
2answers
31 views

Display custom post type category taxonomy

I have a custom post type and a taxonomy which allows the user to select which category the post is in. Here is my custom taxonomy: add_action( 'init', 'create_talcat_taxonomy', 0); function ...
1
vote
1answer
39 views

Custom Post Type Capabilities

I have a custom post type which I want authors to be able to edit others posts but no able to delete others posts. My code as follows: $labels = array( 'name' => __( 'Book', ...
0
votes
2answers
35 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 ...
-1
votes
2answers
35 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( ...
0
votes
1answer
38 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 ...
0
votes
1answer
31 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
30 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' ...
0
votes
0answers
22 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 ...
1
vote
1answer
52 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 ...
0
votes
1answer
29 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
1answer
31 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. ...
0
votes
1answer
77 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
2answers
63 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 ...
0
votes
2answers
58 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
68 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
86 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
0answers
19 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 ...