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

learn more… | top users | synonyms (1)

0
votes
1answer
4 views

Using piklist meta box, strange behavior

I'm trying to get into wordpress theme development. I currently work at agency which uses Roots framework and piklist. I created a custom post type into which i wanted to add an icon from ...
0
votes
0answers
6 views

Instead of displaying related category posts displaying all the posts in every category

I created a custom post type Menu it has Categories and Sub-Categories. I am succeeded in fetching Sub-Categories of the post using this code. <?php $wcatTerms = get_terms('menu-items', ...
0
votes
1answer
6 views

template structure for CPT not clear

I am a little confused with CPT and custom taxonomies. I created CPT named 'Profiles' and did not create any custom taxonomies for it. So categories is the default taxonomy for it, I tried template, ...
0
votes
0answers
9 views

Registering an optional custom post type from a plugin

I see the codex notes to call flush_rewrite_rules() on plugin activation and deactivation when registering a custom post type from a plugin but I'm looking for the best practice if a plugin gives ...
0
votes
0answers
19 views

Custom post type issue

I have been trying to create my first custom post type. But I does'nt seem to succeed since nothing is showing up in my admin menu at all. I have looked over my code 100 times but I can't figure out ...
0
votes
1answer
14 views

Pre-selecting the category for a custom post type

I have a custom post type that has 6 available categories. The categories are used as column headings in a table with their corresponding posts in that column. I want to be able to click on the ...
0
votes
1answer
22 views

New post from database

I have data stored in DB (mysql) I want to creat new post for each row I have created custom post type with custom fields Beside xml rpc is there any other way. Cheers
-1
votes
0answers
17 views

how can i create a custom field for the areas marked with red in the image

how can i create a custom field for the areas marked with red in the image
0
votes
0answers
21 views

ACF only getting specific custom field data

I'm new to this so bare with me if this doesnt conform to the usual standard. Basically I have recently been employed in a new office that builds customised wordpress sites for its clients, I am no ...
0
votes
0answers
26 views

Querying on a custom post type without tags returns no posts

A theme I'm working on contains a custom post type, "help_question", which is declared as such in functions.php add_action( 'init', 'create_post_type' ); function create_post_type() { ...
0
votes
0answers
8 views

Dropdown switching subcategories portfolio

I have portfolio on my site and i want add dropdown switching subcategories for taxanomy 'potfolio-types' For example: Category A subcategory 1 subcategory 2 etc... when're in ...
0
votes
0answers
11 views

Multiple post types or single post type with category taxonomy?

I am thinking what would be the best approach to this situation. Forgive me if I have used terms erroneously. I can either have multiple custom post types which would display individually on the menu ...
0
votes
0answers
17 views

How to link a custom post type status to the user id

I'm currently trying to modify a plugin : Wp job manager application (addon). It allow user to reply via a form directly to a job proposal. After the user submit form. It's creating a custom post ...
0
votes
1answer
23 views

Custom WP_Query doesn't display all posts

I'm building an options page which allows users to choose three posts and three custom images that display on the site's front page. I am using the Settings API to create a custom WP_Query which pulls ...
0
votes
1answer
27 views

Query custom post type with tags

I created a custom post type named portfolio, and am trying to create a query to get similar posts from the portfolio post type based on if it has at least 1 similar tag. For some reason this code ...
1
vote
2answers
15 views

How to retrieve a custom post's capability?

When you register a custom post type, you can specify it's capability: 'capability_type' => 'page', Is there away to retrieve the capability_type within a page (based on the post object ...
0
votes
1answer
13 views

Publish post and create additional posts with same content

I'm building a site which allows authors to create a custom post type, and optionally elect to create X amount of additional posts with the same content. In this case all the content is meta values. ...
0
votes
0answers
17 views

sorting posts (custom_posts) in author page

I want to sort posts (taxonomies) in my authors page, i want to sort them only by there one posts an have the right to edit them. I've try ed select elements but it shows results from search.php
-1
votes
1answer
28 views

Default post_tag for custom post type

Is there a way to set a default post_tag to all posts within a custom post type. I would like all my posts from a custom posts type assigned to one tag displayed in the wp_tag_cloud. Is there a way ...
0
votes
1answer
8 views

Weird capabilities / roles behavior

I've been playing with the custom post types capabilities and some behaviors remains really mysticals for me. The Setup Say you have a Custom Post Type (CPT) called show for defining a radio ...
0
votes
0answers
13 views

Problems with image size on the server Wordpress

I have a problem and do not know how to solve it 've tried everything and nothing ! I have a theme that uses 3 different images to the highlighted image , I'm using add_image_size to generate these ...
0
votes
0answers
2 views

Custom Taxonomies Duplicating Into Each Other When Saving Custom Post

I am having an issue with a custom post type with multiple custom taxonomies. When I add the post the custom taxonomies are saving but the items/terms are also duplicating into the other custom ...
0
votes
3answers
31 views

Custom post type returns bad post ID

I added custom post type and I have first problem. I don't know why but if I use $post->ID, independently of post ID it always gave me the same value. I'm using this function <?php the_post(); ...
0
votes
0answers
14 views

Trimming of post content leading to some open tags that are distorting the page formatting

I am trying to show post excerpt in my page. However, as the excerpts have not been defined by the writer, i am pulling the post content, and then trimming it to certain characters to form excerpts. ...
0
votes
0answers
21 views

how to use two permalinks for one custom post type

I have a custom post type "article" where posts have a permalink structure (www.mysite.com/article/post-name). I need each post in it to have two different templates according to its permalinks: the ...
0
votes
0answers
10 views

How to find URL for post type listing page?

How to find URL for post type listing page I want to get this URL on my post details : http://localhost/wp/ABCPROJECT/stories/amet this is a listing page And this is a it's details page how can i ...
0
votes
0answers
10 views

Get custom meta box in custom post type using tag ID

I have a custom post type called Contacts, and in each of those post I have a custom meta box called number where a phone number is stored in each of the Contacts posts. I also have a custom taxonomy ...
0
votes
0answers
9 views

Grabbing Custom Single Post Template displays WSOD

I'm trying to use a custom Single Post Template & call it via my single.php (It wasn't drawing from single-press.php otherwise) My main goal is to have the Custom Single Posts not display the ...
0
votes
1answer
15 views

How to save custom taxonomy from front end post submission

I have been through many posts on this subject and just can't seem to wrap my head around what I need to do. I have a form where users can submit a post to a custom post type from the from end. I ...
0
votes
1answer
27 views

Custom Post Types,Permalink and Heirarchy

Basicly I want to indroduce a custom heirarchy with custom post types. I Would like it to be like this. The Main Brands URL : http://localhost/brands/ which lists different types of Brands. The ...
0
votes
0answers
21 views

How to build a multiple country WordPress site - pages, posts, and categories for each country?

Is there a best practice in building a multi-lingual wordpress site? There will be multiple content types and taxonomies that will need to be filtered by country. By default the site will display ...
0
votes
0answers
14 views

Adding a CPT to a Custom Themeforest Theme

I am trying to add a couple of custom post types to a ThemeForest theme i purchased and have tweaked a bit and I am trying to get the CPT to pull into the archives and I asked the creator for help he ...
0
votes
0answers
17 views

Create custom field on post from the content

Hello i want to add posts form cvs but i need a custom field for the items marked with red in the image please tell me how to do it
0
votes
3answers
38 views

Sort the main query in subcategories/terms?

I've got a 'downloads' custom post, with his custom taxonomy. The taxonomy has 2 main terms. One of the 2, has 4 sub-terms. I'm currently using the wp templating system to get a standard wpquery of ...
1
vote
1answer
30 views

Convert simple SQL Query to WordPress query

I'm trying to 'batch' update the value in my post_parent fields in my wp_posts table. I can do it from within phpmyadmin using the following SQL Query: UPDATE wp_posts SET post_parent = '8' WHERE ...
0
votes
1answer
24 views

Hide text if query has no posts

I'm using a custom query to display events CPT inside another CPT. The given query has a section title, which I don't know how to hide when there are no events. I've tryed to include the section ...
0
votes
1answer
27 views

How to query Posts from a custom post type which contains a custom taxonomy?

I have the following: $queryResponse = new \WP_Query(array( 'post_type' => 'portfolio', 'tax_query' => array( array( 'taxonomy' => 'portfolio_date', ...
0
votes
0answers
11 views

Dynamically filter custom post types in Gravity Forms based on previous field value [closed]

I am setting up a cruise review website. I have 3 custom post types, cruise lines, cruise ships and cruise reviews. Cruise lines and cruise ships are CPT-onomies, linking the reviews to the ...
0
votes
0answers
23 views

Post being updated as draft/pending instead of being submitted/published when using JS/AJAX validation

I'm using code from this answer to validate some fields for a custom post type before it's submitted for review as well as it's published. Here's my code - //AJAX to validate allocation request ...
0
votes
2answers
29 views

hide old events custom post type

Hello all i am struggling for days now, and i hope one of you can help me i have a custom post type called events and i like to show only events that date is today and upcoming but i couldnt get it to ...
0
votes
1answer
23 views

Send post changes to set email addresses (not users or subscribers)

What I have I am using the "The Events Calendar" plugin on my site to coordinate a team of employees. I want to be able to send an automated email containing the body of an event post (post-type is ...
1
vote
1answer
22 views

Get all of user's custom post types in WP Admin for plugin

I am making a WordPress plugin and hit a rough point. I'm trying to make it so a user can select from all their post types, including custom post types. The code I have below shows the post, page, and ...
0
votes
0answers
6 views

How can I have a custom post type titled “feed” and have the urls work?

First of all if you think this is something one definitely shouldn't do go ahead and tell. I want to separate my site to two blogs, one will be titled "UX Blog" and another just "Feed". But of ...
3
votes
1answer
50 views

Why is the »_builtin« parameter not advised in »register_post_type()« for custom post types?

The parameter "_builtin" => true is a huge help for me, as this will set good permalink structure, like standard posts, for example: example.com/my_category/sub_category/POST-NAME instead of ...
0
votes
0answers
8 views

How to add base permalink to custom posts?

I am having a hard time understanding how custom posts work. I want to achieve the following: Post: /blog360/2015/07/25/hello-world /blog360/category/programming /blog360/tag/wordpress ...
-1
votes
1answer
23 views

Conditional statement checking two conditions for CPT and Custom Taxonomy [on hold]

I am trying to write a conditional statement which checks if the single custom post type also has a custom taxonomy term associated with it. My code is: if (is_singular('my_cpt')) && ...
0
votes
0answers
22 views

Have a WordPress page with same title as custom post type “front” slug

I have a custom post type djs and a custom taxonomy city with two terms: boston and nyc. So a DJ can either be tagged as Boston or NYC. DJ profiles (a single djs post) are located at ...
0
votes
1answer
19 views

Cannot retrieve Custom Taxonomies (Disappeared)

I was deleting custom posts from backend (wordpress dashboard). I have made a front-end form for a custom post type, it has check boxes for custom taxonomies. Now the taxonomies are not being fetched ...
2
votes
0answers
86 views

Custom Post Type Settings page, choose page to display archive

So, I followed the accepted answer of this post Possible to add another setting to 'Front page displays' setting for Custom Post Type but didn't entirely work, had to compare against the ...
0
votes
1answer
18 views

Custom post type permalink: only use %post_id% and remove %postname%

I have created a custom post type in Wordpress which is working great. The only thing I need to solve are the permalinks created by this CTP. I currently have: ...