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

learn more… | top users | synonyms (1)

-1
votes
1answer
21 views

Taxonomy listing issue - does not display how I would like

What I have is a: Taxonomy: menu_type Term: drink (parent term) Sub term: drink 1, drink 2 (child terms) Term: appetizer (parent term) Sub term: appetizer 1, appetizer 2 (child terms) I ...
0
votes
1answer
2k views

How to query posts by meta keys AND under specific category?

The scenary: I'm working in a review system for WordPress, a game review website. It uses default posts, that when under "review" category, shows the review's meta fields (from ACF plugin). It's ...
0
votes
1answer
450 views

Multiple wp_editor instances in custom post type using Ajax

In a custom metabox, I need to generate a tinny wysiwyg wp_editor everytime we click on a button.. I struggled a lot with this and couldn't achieve it. The js $.ajax({ url: ajaxurl, data: ...
0
votes
1answer
727 views

Change permalinks for custom post type based on taxonomy term

I have a custom post type 'profile'. Each profile can be one and only one of either student, staff or alumni, which is set through the 'profile_types' custom taxonomy. This gives me permalinks of: ...
0
votes
1answer
2k views

Use menus with anchors

I have a CPT archive page and I want to create a navigation menu which will jump to anchors in the form <a name="post-slug" http="{the permalink goes here}>The CPT Title</a> I have been ...
0
votes
2answers
4k views

Single page not working for custom post type

I created a custom post type with the following code: add_action('init', 'create_trans_career'); function create_trans_career() { //Arguments to create post type. $args = array( ...
1
vote
2answers
2k views

Add specifications table for products page

I have a WordPress issue that has been keeping me busy for a few days. I'm currently building a website for a client. This website will show products and each product page also has a table with ...
-3
votes
0answers
33 views

How to display custom post type post_meta [duplicate]

How can I display my custom post types with their post meta field date of birth, where date of birth matches today's date or current date? $query_args = array ( 'post_type' => ...
0
votes
1answer
32 views

Adding `supports` array to WordPress custom post type

I am trying to add the supports parameter to my custom post type but it is not working and renders the editing page blank: add_action( 'init', 'create_post_type' ); function create_post_type() { ...
0
votes
0answers
19 views

Storing a many to many post type relationship in post meta and keeping SQL ability for Joins

I have 2 Custom Post types and i am manually keeping a relation between them in a many to many relationship by keeping an array as a custom field. All PARENT post types have ONE filed in wp_postmeta ...
0
votes
1answer
518 views

Create action running on trashed_post hook to modify post_meta value

I have a custom post type that always do math operation to its post_meta and other custom post type post_meta. For example: post-type 1 = cpt_product_order post-type 1 post_meta = ...
0
votes
2answers
23 views

Style post formats differently only in single

I want to use post types to style video posts differently. This should be quite easily achieved with custom post types. But I only want the video post type to affect the post when it is in "single". ...
0
votes
1answer
24 views

Display subcategories in the filter on CPT

I have a little problem with my CPT. I created some categories with subcategories, and I wish display the subcategories in the select filter. Actually, the categories filter display only the first ...
0
votes
1answer
22 views

Option page's form doesn't work

I have two option pages: General Options > MyOptionPage1 and CustomPostType > MyOptionPage2 Both have a form, but the after clicking Save in second option page I land in the 404 page. Here is ...
0
votes
0answers
13 views

Custom Post Type - after disable 'Add New', I can't edit and delete post

I need to disable 'Add New' button for my CPT, but when I add: 'capabilities' => array( 'create_posts' => false, 'edit_posts' => true, 'edit_post' => true, 'delete_post' ...
0
votes
0answers
15 views

Auto insert custom post type title

Is it possible to change the custom post type title based on another selected field? Basically i'm trying to do this:
4
votes
2answers
67 views

Password-protect a custom rss feed

I've created a custom post type and would like to send those posts to FB Instant Articles and Apple News via a RSS feed. I've created a custom RSS feed and need to know what's the best way to make ...
0
votes
1answer
35 views

Custom post type with two templates

I have a custom post type with an archive-my-post-type page and now I need a second archive page without header and footer and with a custom content. So my question how can I create a second page ...
0
votes
1answer
47 views

Custom post type archive page not showing on archive-posttype.php

I am trying to create archives page for my custom post types but it is going to a default archive page not the archive page which i have created for archives Here is my code for custom post type ...
0
votes
0answers
20 views

Custom Post Type - multiple in single menu position

I currently have a couple of 'Custom posts types'. Currently, each of them has a separate item on the menu but I would like to add them all as sub for one position. I have somethink like this: Movies ...
0
votes
0answers
28 views

Remove CPT slug in multisite installation

I would like to remove the custom post type slug from the site url. Searched hours for a solution. Didn't find a working one and can't resolve it on my own. It is a domain-based multisite ...
0
votes
2answers
906 views

Including all post id's of a custom post type into an array

For my single.php (products.php), I try to build a navigation via which the user can switch between products based on the meta key "price". I want to put all id's of the products post type into an ...
0
votes
2answers
37 views

Hide specific taxonomies from a taxonomy list using 'get_object_taxonomies'

Hello, I have a 'Custom Post Type' with 8 taxonomies and I'm pretending display a list with only 6 taxonomies and the no empties terms of each one and hide 2 taxonomies. My current code displays all ...
-1
votes
0answers
21 views

Events Plugin on WP Multisite

I recently created a website for an organization that hosts many events each year, and in their site I tried to build a custom events plugin. It worked great on my local environment, but gave their ...
1
vote
1answer
2k views

Querying custom posts and regular posts

I want to populate the "Greenway News" box on this page with the three latest headlines from the site's Press section AND blog. The blog is a regular WP blog and I am currently using this code to get ...
0
votes
2answers
32 views

Remove custom post type generated by a plugin (The Events Calendar) [closed]

On my client's site, I had installed the plugin "The Events Calendar". I noticed after uninstalling, the event archive page still remained and I could not find a way to remove this page. I have ...
0
votes
1answer
638 views

WP_Query post at custom position

Lets say I have a custom query which based on two custom post types: $wp_query = new WP_Query(array( 'post_type' => array('post-type-1', 'post-type-2'), 'post_status' => ...
0
votes
0answers
26 views

CPT url rewriting : regular posts return 404 error

I have a WP website where a created a CPT named product, which has several custom fields, including a category field. This "category" is a custom taxonomy that can take several values, let's say : ...
0
votes
1answer
796 views

SQL to update custom post taxonomies

I have a custom post "review". It uses the same categories and tags from default posts, so they share "category" and "tag" taxonomies. But later I changed the "review" register to have their own ...
1
vote
1answer
26 views

Page vs Custom Post Types Differences/Issues

I started noticing issues last week when 4.5 was released and mistakenly believed that update caused an issue. In reality, I just happened to notice it for the first time around then because last week ...
0
votes
3answers
2k views

How to enable parent-child relationships and post attribute admin widget for posts

I want to be able to select a parent post when i create a new post. I assume it should be easy just to make the 'page attributes' admin widget to work similarly for posts too. The use case is for ...
0
votes
1answer
556 views

Adding contact form in custom post type

7 I create a custom post type called "Artist". And i have a different artist [post] profile? And now i want to add a contact form on every post. So, User can contact with particular Artist. So, ...
0
votes
0answers
12 views

Custom rewrite rules on custom posttype

I've got a problem presented to me by a client which I can't seem to fix. They have a Wordpress website with a custom posttype 'projects' This custom posttype has a custom taxonomy 'categories' What ...
4
votes
2answers
4k views

Meta query with boolean true/false value

I'm trying to show all rental properties, first by all properties that have not been rented, and then by all properties that are currently rented. There is a custom post type 'rent' with custom post ...
0
votes
1answer
438 views

Query to change custom post type with specific category

I need to change several hundred posts with custom post types to regular post type but only from one category within that custom post type. So I have a custom post type 'films' and within that post ...
0
votes
1answer
2k 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
2answers
61 views

Conditional posts in WP_query for search

I have a custom post type that im trying to limit results in search. The CPT is a deal/coupon, with a start and end date for each of the deals. What I'm trying to do is only show these posts in ...
0
votes
3answers
2k views

Add multiple custom meta boxes to different custom post types

I want to add one custom meta box to a specific custom meta type "chifres" and two custom meta boxes to a specific custom meta type "presse". This is how far I've gotten: Here is my code: //Add ...
1
vote
0answers
99 views

Edit Custom Post Type on Custom Admin Page instead Post Admin

Background: I am still quite fresh to coding and WordPress. For me the best way to understand, is to work on a specific project. Project: I want to build a Customer Relationship Tool for WordPress ...
0
votes
0answers
22 views

I need “View” option in posts wp-admin to show a page for admin, not open website view

Ok I have searched and Googled for this and I couldn't find anything useful, so here's the basic question that I have: Do you know when you are inside wp-admin and you have that "View" option on ...
1
vote
1answer
2k 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
1answer
39 views

WordPress custom post - add dynamically meta boxes

I want build an custom editor for my custom post type in WordPress. I'm able to add multiple tinymce editor to the post type, but I want this dynamically. I'd like admin users to be able to create ...
0
votes
0answers
14 views

Multiple Themes Rewrite

I have installed a plugin called Multiple Themes, formely jonradio Multiple Themes. My website has 3 themes which represent 3 different locations (A, B and C). A = primary theme. All themes share ...
0
votes
1answer
22 views

Displaying a custom post type using get_template_part into a specific layout

I am new to wordpress custom themes and am trying to recreate this website (http://www.divecarib.com/) as practice. I am trying to find the correct way to achieve the following: I have created a ...
0
votes
1answer
577 views

Help integrating Custom post type meta field with custom profile fields

I have a custom post type for "locations" and I need to have "users" log in and be able to pick a location that is within a certain distance from them. I have added some spots to the profile using ...
1
vote
3answers
4k views

How to use next_posts_link/previous_posts_link for custom post types paginate?

I have a question about usage of previous_posts_link/next_posts_link. Is it possible to use it for custom post types too? I like to hear from you. Thanks in advance. Casper
0
votes
0answers
34 views

How to order posts by meta key?

I have posts with a meta_key "sticked" and value="1". How can I get all posts and display the posts with meta_key "sticked" first? $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : ...
12
votes
2answers
29k views

Custom Post Type URL Rewriting?

I setup a custom post type for my portfolio projects. The main URL for this is located at /projects/ Now I've also setup my blog posts permalink to /articles/*/ for the permalink structure. This ...
0
votes
0answers
30 views

Can I add category list in wordpress TinyMCE custom button

I want to create a custom post type gallery plugin.I already create shortcode and create TinyMCE button But I can't add Taxonomies list in TinyMCE-button.js file. how can I add this? my code is php ...
0
votes
1answer
19 views

how to use two permalinks for one custom post type based on categories

I am trying to get 2 different permalink for one custom post type, based on the solution given there. It is working for articles, but I can't get it work for my "film" custom post type. Here is my ...