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

learn more… | top users | synonyms (1)

0
votes
0answers
25 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 : ...
1
vote
1answer
24 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 ...
4
votes
2answers
58 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
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 ...
-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
0answers
21 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 ...
0
votes
1answer
20 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
0answers
33 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' ) : ...
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 ...
0
votes
0answers
17 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
0answers
10 views

Manage edit-post type columns custom post type separate page

I am designing a plugin with post type cars. The plugin have one page to display cars in columns (Just like posts and pages list). I used following code to add columns: add_filter( ...
0
votes
2answers
26 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 ...
0
votes
0answers
30 views

wp_get_archives doesn't work with 'post_type' with WordPress 4.5

wp_get_archives support the post_type parameter from 4.4.0, so I decided to add a <select> on the cpt's archive page. Unfortunately wp_get_archives returns with NULL. Do you have any idea ...
0
votes
2answers
48 views

Get post ID from wp_insert_post()

$new_post = array( 'post_title' => $title, 'post_content' => $description, 'post_category' => ...
0
votes
0answers
21 views

How to edit 'aside' post format in for a custom post type

I have created my custom post type using following code add_action( 'init', 'post_job' ); function post_job() { register_post_type( 'job', array( 'labels' => array( 'name' => 'Jobs', ...
0
votes
0answers
24 views

Custom post types from custom database

For a plugin I want to use custom post types based on data stored in an external database. This database isn't related to WordPress (the structure of the tables is independent). The datastructure is ...
1
vote
1answer
38 views

Filter the content from a post globally immediately after is fetched from the database

I am encrypting the content of a specific custom post type whenever i am updating or creating it. That is working fine. Is there a way to globally decrypt the content for all WordPress read ...
0
votes
1answer
26 views

get_post_permalink() and custom permalink rewriting

I've been working on a CPT named "product" that has custom permalinks. Here is a part of this CPT : 'rewrite' => array( 'slug' => 'catalog/%product-cat%', 'with_front' ...
-1
votes
0answers
55 views

Query between dates using ACF Date Picker fields

$query_args = array ( 'post_type' => taxonomy, 'post_status' => "publish", "order" => "ASC", "meta_query" => array( "relation" => "OR", array( ...
1
vote
1answer
25 views

URI returns a post when it should return a 404

Morning All I have a question and I think I have a solution as well, but I wanted to ask to see if my thinking is correct. I have wp site live at http://www.phmotorcycles.co.uk and I have just found ...
0
votes
1answer
13 views

Post Custom & Taxonomy 404 error

Basically the single Permanent link are giving me 404 errors. might be wrong? Code is below: function post_types(){ register_post_type('carta',array( 'labels' => array( ...
0
votes
1answer
13 views

Retrieve custom post by a query on one of its custom fields

I've been using custom posts on my website, among them there are : "session" and "lecture". The custom post "lecture" has many custom fields such "title", "duration"... The custom post "session" ...
0
votes
0answers
21 views

Get posts from two taxonomies

I've created post types and taxonomies using Custom Post Type UI plugin. There are two taxonomies: rubric and city. Each taxonomy post lists are available at URLs /rubric/toaster/ and /city/kiev/. I ...
0
votes
3answers
33 views

Editable content on a Custom Archive page

I want to allow my client to change some introductory text on a custom post archive page (eg. archive-unicorn.php), but I can't see how to do this. I guess one way I could do this is would be to ...
1
vote
1answer
34 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
2answers
43 views

Show custom taxonomy not in submenu

I have one small problem and I can't find answer...I have created custom post type and custom taxonomy, but my custom taxonomy is showing as sub menu under custom pos type, here is example what I ...
0
votes
0answers
18 views

Display taxonomy child only if parent is current

I have 4 level wordpress taxonomy tree. I want to display as category list and display child only when parent is current category. There is my code <?php $term_list = ...
0
votes
2answers
27 views

Get custom term meta problem on single post type

I'm trying to display a custom field value added to custom taxonomy on single custom post type. I have articles post type with custom taxonomy called issue. I used the code from Tax-Meta-Class to add ...
0
votes
3answers
41 views

Custom search for custom post meta with pre_get_posts interferes with WP search

I'm making a custom post meta search with the pre_get_posts function in my Divi child theme functions.php file. The problem is that the final query gathers not only the results for my custom post ...
0
votes
1answer
41 views

Implement post status update as frontend news announcement

Is there a way to implement a function to print status update on the home page. eg. 2016/04/17, there are 2 articles posted in category ABC 2016/04/17, there are 3 articles posted in category DEF ...
0
votes
1answer
17 views

Wordpress add taxonomies/terms list as a menu in archive page

I create a custom post type (deals), terms (project), menu (top_menu) and archive page (archive-deals.php) on my theme. I want to display terms post list in archive page. But when I click terms menu ...
0
votes
1answer
8 views

Problem with adding custom post type meta to header by plugin

I'm trying to write a plugin by which a meta code will be added to specific post type header. I tried to use this code: function msc_header() { if ( is_singular( 'article' ) ) { echo ...
0
votes
1answer
8 views

conditional based upon the count of current user's published custom posts

I have this conditional snippet that does something is the current user has not published a normal post. But I'd like to change it so that it counts a custom post rather than a normal post. <?php ...
0
votes
1answer
23 views

Custom taxonomy returns 404

I'm getting a 404 page when I visit my custom taxonomy page. Custom taxonomy is called 'manufacturer'. I also have a cpt called 'product'. EDIT 1: It has something to do with the cpt rewrite. If I ...
0
votes
0answers
38 views

Omitting the latest entry with custom type and taxonomy term from the loop

My agency has inherited a client with a customized theme provided to them from a separate agency, which farmed the work to another agency off-shore. The documentation for this theme is non-existent ...
0
votes
0answers
10 views

I am trying to sort items in a current taxonomy by taxonomy, then custom post [closed]

The below code is currently listing the articles in menu_order for the current issue, I need the articles to be sorted by taxonomy (issuem_issue_categories) as well. <?php // The Query $defaults = ...
0
votes
0answers
16 views

How to add a pagination in custom post type maker plugin

I declared testimonial using a testimonial page template. I want a pagination in testimonial menu. <div class="testimonial"> <ul> <?php $args = array( "post_type" => ...
0
votes
0answers
26 views

WP add_rewrite_endpoint - custom post types destroys permalink URL match

I'm trying to implement AMP-versions to Wordpress posts with a custom plugin. The problem I'm having is that we use a bunch of different post types. They all have their own permalink structure. For ...
0
votes
0answers
12 views

Post Notification Function triggering on wrong custom post type

I have a function that triggers an email when a post (any CPT too) goes from draft to publish. The post types I want to use this function for are normal posts and my 'recipe' CPT. When I publish a ...
6
votes
1answer
57 views

Custom Post Types not showing on Custom Taxonomy archive page

I've been working with custom post types for a little while now, but yesterday I took my first stab at a custom taxonomy to pair with them. Here is my 'company' taxonomy: function ...
0
votes
0answers
50 views

Custom post type category pages return 404

I have created a custom post type using the following code and its working but i get a 404 error when accessing the category pages. function services_init() { $args = array( 'label' => ...
1
vote
1answer
25 views

Add predefined/default values to custom post plugin

I have created a custom post plugin. I need to add predefined text/values within this plugin, when adding new custom post. Is it possible to handle these predefined text/values in my plugin PHP ...
0
votes
1answer
29 views

Archive for a Taxonomy of a Custom Post type

I have a situation like this: /disrupt-founders/disrupt-categories/help-me-be-healthier/ What I am wanting to do it create an archive page that is unique for the Taxonomy based on the Custom Post ...
0
votes
0answers
31 views

Get Post Custom for Custom Post

I am trying to get the following code to return the gallery slider for the following custom post "advert". function tie_gallery(){ global $post, $tie_blog; if( is_singular() || tie_get_option( ...
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 ...
0
votes
2answers
55 views

Overriding Plugin Function in Child Theme

I have a plugin and a custom post type class like this. I want to override one its function in my child theme. class Inspiry_Property_Post_Type { /** * Register Property Post Type * @since 1.0.0 ...
0
votes
1answer
28 views

Custom post type name and assigning custom taxonomy

I've made mistake creating custom post type. I've put: register_post_type( 'Post Name', $args ); instead of register_post_type( 'post_name', $args ); Now I need to assign new custom taxonomy to ...
0
votes
0answers
31 views

Subcategory generated based on title of custom post type

This is what I have in my functions to create a category based on the title of a custom post type "attorneys": add_action('save_post', 'add_title_as_category'); function add_title_as_category( ...
1
vote
1answer
22 views

List terms from Custom Taxonomy

I have registered a custom post type "Projects" and also registered a custom taxonomy for that Post Type called "Project Categories". On my home page I have a div in which I would like to list all ...
0
votes
1answer
13 views

Custom Post Type rewrite url to /category/pagetitle [duplicate]

I know this questions has been asked a lot, but after working on it for 6 hours straight I can not find a good solutions anywhere. My site has a Custom Post Type and taxonomy. My taxonomy are for ...