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

learn more… | top users | synonyms (1)

0
votes
0answers
9 views

Search form/Search results for Custom post type and its associated custom fileds

I have "Courses" Custom Post Type and few custom fields linked to each post type. Custom fields like Course Id Category Course Title Languages Month Year Duration. I am new to this Custom post ...
0
votes
1answer
691 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() { ...
8
votes
6answers
11k views

Get terms by taxonomy AND post_type

I have 2 custom post types 'bookmarks' and 'snippets' and a shared taxonomy 'tag'. I can generate a list of all terms in the taxonomy with get_terms(), but I can't figure out how to limit the list to ...
2
votes
1answer
467 views

Custom post types not imported properly

I've registered a custom post type: function create_gallery_post_type() { register_post_type( 'sim_gallery', array( 'labels' => array( 'name' => __( 'Sim Gallery' ) ), ...
1
vote
4answers
98 views

404 error PageNavi custom type taxonomy | wordpress

I have a custom post type called rock with a custom taxonomy called genero. taxonomy-genero-curiosity.php mypage/Rock/curiosity/ When i click subsequent paginated page links (e.g. [2], [3], ...
0
votes
2answers
36 views

How to display custom field value on page?

I have added custom fields by clicking on screen option and mark custom field ,how to display custom field value on page?
0
votes
1answer
28 views

Query all post types but limit to parents

I'm building a site with several post types and am using a single index.php to query the archive for each one in turn. One of these post types is hierarchical and I'd like to just query the parent. I ...
0
votes
1answer
23 views

Create taxonomy from Custom Post Type

I know this question has probably been asked many times but I have tried googling without any success (at least without using a plugin) I have a custom post type for "Publishers" which contains all ...
0
votes
0answers
26 views

$post breaking container loop

Problem I have a foreach loop grabbing posts inside an advanced custom fields repeater. When it's finished looping through posts it breaks the repeater. I believe the problem is with $post as far as ...
1
vote
1answer
834 views

How to Mass Delete Images from Media Library

I need your help. I am trying to mass delete attachments from a custom post type ('book') using a sql query. I found this snippet on the wordpress form: Wordpress.org I tested it on my local ...
1
vote
2answers
346 views

Excluding post type from WordPress link builder

I have created a custom post type with parameter 'public' set to true. This is because I have to have it accessible in plugins that help you to build queries for post display, such as the Views (part ...
0
votes
0answers
18 views

Woocommerce CPT

Good Afternoon, Is there a way to override woocommerce Categories to use Custom Post Types categories?. custom post type; Destination (Main) --Location (Child of Main) --Categories (Child Of ...
0
votes
1answer
105 views

Ordering posts by custom taxonomy in admin area

EDIT @kaiser - this question is slightly different to the answer you posted in that I am talking about sorting by clicking the column title rather than adding a dropdown to filter by taxonomy term ...
0
votes
1answer
15 views

Change a custom post type on an existing site

I have a site using two custom post types called destination and walk, where destination is used to categorise walks, by pulling a list of destinations into the walk editor. Part of the site has now ...
1
vote
2answers
803 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 ...
1
vote
1answer
478 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
31 views

How to remove Content Meta from Custom Post Type [closed]

I'm using Catalyst Theme and have created a custom posttype. I want to remove the "written by author on date" information that's appearing. The Catalyst Theme has an area where I can disable this but ...
0
votes
0answers
20 views

How should I setup a special series on my blog?

I am not a full-fledged WP developer. But I know how to do basic PHP functions and get stuff working the way I want. However, I want to do a special series on my blog, that will last the next 3-4 ...
1
vote
0answers
38 views

How can you use one database with multisite

I have two separate wordpress installations and two different domains. I am using one database with table prefixes. It works great but when I enter my content on one site it isn't reflected on the ...
0
votes
1answer
1k views

Add Standard Page Attributes Metabox for Page Parent

I have a custom post type 'product' supplied to me by a Wordpress eCommerce plugin that does not offer the option to change the Page Parent in the Page Attributes Metabox. I'd like to remedy that. I ...
1
vote
2answers
2k views

Set posts of a custom post type to be private by default?

Say I created a custom post type called 'Private Posts' ($post_type = itsme_private_posts) and want all posts under the custom post type to be set to 'Private' automatically when published i.e. by ...
1
vote
2answers
424 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 ...
0
votes
1answer
27 views

Stop Custom post type from being searched via URL

I am developing a website in WordPress and I have used a custom post type for people to use. The custom post type only shows if the user is logged in and is the author of it, this shows on the profile ...
0
votes
1answer
28 views

Can't edit Custom Post Type slug/permalink

I have a custom post type and the permalink shows up but I am unable to modify it like I can with Pages and Posts. Is there a way to enable this? I have a few conflicts with some pages and I'd like to ...
0
votes
2answers
421 views

Assign Page Template Within A Custom Post Type

I have registered a Custom Post Type and created a file called archive-myCPT.php and another one for single posts called single-myCPT.php. What I want to do is to create a page where I will show just ...
1
vote
1answer
890 views

Custom Image Thumbnails of Different Sizes

I have a Custom Post Type which contains custom fields for uploading images of different types for a portfolio site. For example: (logos, websites, print-ads, etc...). I plan on uploading images of ...
1
vote
1answer
16 views

Custom post type permalink returns 404

Mates, I've created a custom post type. Created some posts of that type, but when I try to access to any of them, I get 404 error. Also created single theme (single-pb_progproy.php). Here's the ...
17
votes
4answers
31k views

Advanced search form with filters for custom taxonomies and custom fields

I'd like to build an advanced search form for a specific custom post type, having filters for the custom post types custom fields, custom taxonomies, and for a separate custom post types properties ...
1
vote
0answers
27 views

Rewrite rule for Custom Post Type Page as a parent

I'm searching for answers, but unfortunately can't find and hope to find here. I'm using Pods for custom post types called "players" and normal Pages for "teams", which is hierarchical, for example: ...
0
votes
1answer
24 views

Arduous Wordpress Custom Post Type Permalink Path

once again folks, i have to ask about custom post type url, because is not clear for me what to do so let me short eplain whats the problem is with it Note: I have seen a lot of solutions (here) to ...
1
vote
0answers
25 views

How do I relate a taxonomy with a custom field type, on another custom field type? [closed]

I need to create a tiered relationship between posts in WordPress - I am using ACF (Advanced Custom Fields). The end result is to create menus (food menus). There can be multiple menus (Breakfast, ...
0
votes
0answers
28 views

Associate multiple users to custom post type

Trying to associate multiple users to a custom post type (product) and then display products on user profiles (Buddypress). Have hit a brick wall trying to decide how best to implement so hoping for ...
0
votes
0answers
22 views

Display multiple Custom Post Type in page template [closed]

I uses 2 custom post type and like to display them in one template page. I created page-custompost1.php i assign it to a wordpress page in admin with template dropdown. My query is : $wp_query = ...
0
votes
2answers
455 views

Save post_parent in a custom post type

I'm using the save_post action to save some meta data in a custom post type: function my_save_post($post_id) { // is autosave? if(defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) { ...
0
votes
0answers
31 views

Ordering posts having multiple post-meta date fields

Hello WordPress developers. Over the years, I've found answers to many questions I've had with WordPress. I want to thank you for your help. Today, I have a question myself, and seek for expert ...
-2
votes
0answers
10 views

Create WordPress Plugin for slider with Jquery Sortable in Plugin Setting Page [closed]

I Want to build a WordPress Slider Plugin with Setting Page. Which have jQuery Sortable Feature on Images. Please give me Solution and Effective Article. Please check Example of jQuery . ...
0
votes
1answer
268 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 ...
4
votes
3answers
924 views

Best Way to Create a List of Musician Gigs in WordPress

I am currently designing a musician's wordpress theme, and am looking to create a user-controlled dynamic gig list. I've done this before using PHP, but am wondering what the best way to do it in ...
0
votes
0answers
23 views

Populate second dropdown using Selectize [migrated]

I was using the Chosen plugin to populate a second dropdown based on the selection of the first. I would like to change over to the Selectize plugin for performance reasons now, but am having trouble ...
1
vote
1answer
63 views

Custom Post Type by Taxonomy

I have two custom post types - office and professional. Each professional needs to be tied to an office. I've created a custom taxonomy, 'tax-location', applied it to both post types to tie them ...
0
votes
1answer
336 views

wp_trash_post action hook with custom post type

When a 'contact' cpt post is trashed, i need a metakey from another cpt 'act' to be deleted, i have been searching all over which hook i should use but unfortunatly the codex action reference page is ...
0
votes
1answer
152 views

Custom post type / taxonomy rewrite archive page 2 gives 404

I've followed the code based off this and everything is working perfectly -How to create a permalink structure with custom taxonomies and custom post types like ...
0
votes
1answer
26 views

saving dropdown menu data on custom post type

I'm following this tutorial on how to make a custom field. I already used it before and it worked, but I only did it for text inputs. Now I'd like to make a drop down menu and I'm unable. The thing ...
0
votes
2answers
27 views

Function to limit number of custom post types on homepage - TwentyTen

here is the deal... I got hold of this piece of code to change the default post type shown on my TwentyTen child theme's homepage. It works like a charm when I add this code to the functions.php ...
1
vote
1answer
758 views

Displaying custom-taxonomy-terms sorted by parent/child-hierarchy?

I have a custom post type with a custom taxonomy (to show some "best practice" examples on my website). On the single-post-page (single-bestpractice.php) I wanted to show all the terms (categories) ...
2
votes
1answer
1k views

Listing Pages With Checkboxes In a Metabox (and saving them)

Here is what I'm basically trying to accomplish: I have a custom post type called 'quotes' I have a number of wordpress pages What I am trying to do is this: each time when I create a new "QUOTES" ...
0
votes
1answer
3k views

How to add multiple featured image in meta box in post editor?

I would like to add multiple featured image in meta box in post editor area apart from default available featured image. I have added the meta box but i have no idea on adding the featured image ...
0
votes
1answer
291 views

Custom post type 'Show on screen' didn't apply to number

I want to show more custom post types in the admin area, but when I increase the number of posts by adding a number in the screen options and click apply, nothing happens. However, this works with the ...
1
vote
1answer
798 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() ...
1
vote
1answer
584 views

404 - Category pagination for custom post type

--Edit I've managed to narrow it down that the paged variable is not working properly here, (get_query_var('paged')) ? get_query_var('paged') : 1; is always returning 0 although maybe it is due to ...