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

learn more… | top users | synonyms (1)

1
vote
0answers
19 views

How to change permalink to include custom post type

Is there a way to add custom post type to permalinks with a plugin or otherwise? This is what I am trying to accomplish: mysite.com/projects/food/burgerking mysite.com/projects/wine/cherryvineyard ...
0
votes
2answers
75 views

Show related posts on single page by custom taxonomy on custom post

I am trying to build a villa rentals website. To achieve that, I have created two custom post types. The one is named "villa" and is used to show the villas for rent, and the other one is named ...
0
votes
1answer
8 views

Displaying taxonomies with manage_{custom-post-type}_posts_custom_column

How to display taxonomies column for a custom post type while using manage_{custom-post-type}_posts_custom_column filter? I tried: if( 'sections' == $column ) { echo ...
1
vote
0answers
24 views

Add Custom Post Type of specific Custom Taxonomy to regularly blog loop

I want to add a CPT to be shown in the blog. I figured out that I can use the filter hook pre_get_post to get the query object and I can modify it. However just adding another post type to the loop is ...
1
vote
2answers
133 views

Rewriting 'rewrite' slug for custom post type used by plugin

quick question: I'm using a plugin that creates a custom-post-type with the rewrite slug /projects/ So myurl.com/projects/single-project I want to to rewrite `projects/ with 'rewrite' => ...
0
votes
0answers
17 views

Custom post type term - display additional posts (with different term) on term listing page

I've a custom post type (named: 'products') with taxonomy and terms (categories for products fe. Category 1 > Subcategory 1). The Category 1 > Subcategory 1 is one term - I've only added the ...
0
votes
0answers
8 views

Is there a way to establish parent/child relationship in WP menu links exclusively?

to expand on this question title: Is there a way to establish a parent/child relationship of menu links (using the WP menu) that adds the dynamic helper classes (ie. current-menu-parent, ...
0
votes
1answer
15 views

How can I lock specific posts (cpt's) from editing by anyone other than ADMINS

To be 100% clear, this has nothing to do with the front end of the site. I want to keep all users other than Admins from editing a few specific posts. The posts are a CPT that the editors/admins ...
0
votes
1answer
18 views

How do I put `tax_query` in this WP_query?

So I have a WP_Query, that displays posts from a custom post type. It only displays posts that have a date in the future, not ones that have past. I now want to include tax_query in this WP_Query. ...
0
votes
0answers
27 views

Add role privileges of the custom post type

I wonder if it is possible when adding a new role add_role() I can assign to it a privileges to add, edit, delete posts of a custom type. To be specific. I want to add a role 'volunteer coordinator' ...
0
votes
1answer
27 views

How to add a custom taxonomy to show up in a custom post type menu?

I really don't know hot to ask this question correctly. I've created a custom post type with a name badges and added custom taxonomies to it (level, skill). Now I want to add a new submenu item to ...
0
votes
1answer
35 views

Custom post type - list posts based on meta_key and display them divided by CPT taxonomy category

Shortly: I've custom post type called 'produkty' Inside this CPT I've taxonomy called 'kategorie_produktow' with terms (list of product categories, like in normal posts) - each product has ONE ...
0
votes
1answer
33 views

Using WP_Query, I want to show posts that are associated with a custom taxonomy term

I have a custom post type called event. Custom taxonomy called event categories, which has various terms. I want to show all the events that belong to a certain custom taxonomy term on a archive ...
0
votes
0answers
13 views

How can I get all the posts for a term in a custom taxonomy?

I want to get all the custom posts that belong to a term, from a custom taxonomy. My code is not working, as it displays all of the custom posts & not just posts that belong to a specific term. ...
0
votes
1answer
23 views

Why is wp_is_post_revision always false?

I am trying to save a revision of a custom post type. This is what I have to check if the post has a parent: function save_revision( $post ) { if ( $post['submitted'] == true ) { ...
0
votes
1answer
11 views

Custom post type with Filter and Page Nav

A custom post type custom also have special custom fields people and location I am trying to get this in the listing archive page with a filter on people location year (which is the post date) to ...
1
vote
0answers
25 views

how to determine we are in add new custom post type or edit custom post type

I have created custom post type and made the form to add custom fields in custom post using add_meta_boxes action. actually in my custom post type i have employee_id which is next number in the ...
0
votes
0answers
17 views

Custom post types and their relation

Hey there :) I'm having a hard time figuring out some structure in Wordpress when i make custom posts and taxonomies. I'm trying to make a website that uses posts as "news", custom post for "Cases" ...
0
votes
1answer
19 views

How to display custom post type in a submenu?

I am adding a submenu named as "Articles" using add_submenu_page() under a custom menu. I want to display the custom post type="page_article" in this "Articles" submenu. Whenever I click on Articles ...
0
votes
1answer
17 views

“Edit” option for custom post types archive page

I have a custom post type archive page but I also need the user to be able to insert a bit of page text. I thought I could just use the_content() of the page but the edit link is gone from the admin ...
0
votes
1answer
23 views

Modifying WP_Title For Custom Post Type

Trying to modify the output of the WP_Title through a custom post type with a filter. I've had no issues doing it to the_title but I assume as the wp_title function is called through the header it's ...
0
votes
1answer
26 views

Make the 'all' filter default instead of 'mine' in a custom post type

I reckon this one is quick and easy... I think I'm just missing something very obvious. My inquiry is nearly identical to this stackoverflow post. For non-admin users, the default filter for posts ...
-3
votes
0answers
24 views

how to call widget area in custom post types [closed]

i m using Types plugin in genesis framework , then i will create custom post and Field under the custom post. i want to call theme widget or want to create custom widget area in this custom post ...
0
votes
1answer
22 views

Types plugin custom post add_action hooks

I'm using the wp-types plugin to create a custom post type. I'm developing my own plugin which I need to fire whenever a post of my custom post type is updated. Right now add_action( 'save_post', ...
0
votes
1answer
29 views

Wordpress custom post action hook

I'm working on a plugin for wordpress that I would like to fire every time a custom post of the type 'job' is posted, published, edited, trashed, untrashed, etc. (basically whenever there is an update ...
0
votes
2answers
35 views

custom search result page

what i did, i create a search.php <?php get_header(); ?> <div class="wapper"> <div class="contentarea clearfix"> <div class="content"> <h1 ...
0
votes
0answers
46 views

Custom post type with parent page? Possible?

I'm having trouble getting my url structure the way I want. I have a page with two sections: private company Let's take private as an example. In this area, I wan't to have a url structure like ...
0
votes
2answers
45 views

Page Template For Custom Post Type doesn't work on URL containing CPT name, other URL's work

Here's a mystery for you. I created a Custom Post Type called "portfolio". Then I wanted a page template to show just those CPT's. It's a custom loop with paging, and it works perfectly if I don't ...
0
votes
0answers
17 views

Make custom post url accept anything after the event slug - for use as url parameters

I want to parse url parameters to my custom page code within a custom post type by simply appending folder values to the end of the valid custom post type. So instead of: www.test.com/tests/post1/ ...
0
votes
2answers
34 views

Custom Post Loop in Archive returns same the_permalink

I've got the following code that is meant to grab the latest post from each of the provided custom post types ($customTypes), it works on the majority of pages of my site, eg here: ...
0
votes
0answers
42 views

Update ACF fields on a frontend form?

I have the form below to update posts in a custom post type. In my custom post type I have some ACF fields which I also need to be able to update, but unsure how. I can update my default WordPress ...
0
votes
0answers
18 views

Copy/Move selected taxonomy terms to another taxonomy for posts

I've been searching for about 2 hours now on a solution of copying/moving selected taxonomy values for each posts to another. Here's the situation. I'm working on a site that has a post type of ...
0
votes
1answer
30 views

Get $post->ID from a URL

I have a custom post type called music. I have created a custom template as a normal page to show some stats for the musicians. I have a page where they can see all there songs and have added a ...
0
votes
0answers
19 views

Get full control over custom post type url

The situation I have a custom post type, lets call it 'CP', which has two parent categories named 'companies' and 'category'. Posts of type CP can only have one company and multiple categories. So, ...
0
votes
0answers
12 views

Adding custom post formatting options in custom post types

I've added custom post formatting options using the below code - function wpb_mce_buttons_2($buttons) { array_unshift($buttons, 'styleselect'); return $buttons; } add_filter('mce_buttons_2', ...
0
votes
1answer
27 views

posttype/taxonomy/term archive page 404 error

I am trying to get archive page working for "url/posttype/taxonomy/term" but am not able to make it work for all taxonomies. I have went through a few posts regarding how to set it up but only reason ...
0
votes
0answers
19 views

Parent to another Custom Post Type - Template files not being recognized

I have two custom post types - 'gaming-consoles' and 'xbox-games'. I also have two custom templates for these post types: single-gaming-consoles.php and single-xbox-games.php - which worked great. ...
0
votes
1answer
17 views

Wordpress custom post type advise

I am currently developing a site in Wordpress and in need of some advice. I have a task that isn't overly complicated but I just can't fathom a 'clean' way of doing it. Maybe in my mind I'm over ...
0
votes
1answer
26 views

Custom Post Type and Taxonomies, creating the corresponding template file and loop the data

I am creating this custom post(which is some sort of image gallery). Well each custom post also have this taxonomy, which works as a category type/post type. My question is, how do I create a custom ...
0
votes
1answer
23 views

Date query for a custom meta field

I would like to use something similar to the following date_query but I would like to use some custom meta fields instead of the existing post columns. For example instead of post_date_gmt I would ...
0
votes
1answer
30 views

Show posts in archive or homepage and sort them by number of views

i am using wordpress default loop to show custom posts types on home page. Currently it is showing latest post. I need to show Products with most views first. Please tell me how can i do this. My ...
0
votes
1answer
23 views

Prevent author role from editing all posts in custom post type?

I thought the Author role was only allowed to edit posts created by that author. That works in Posts and Pages, but I created a custom post type and the author can edit ALL posts in that post type. Do ...
0
votes
0answers
14 views

Sorting CPTs with multiple taxonomies

I'm currently rebuilding my company's website as a WordPress site, and I've hit a bit of a snag. Background: I work for an FMO that supports independent insurance agents, and on our current website ...
0
votes
0answers
16 views

Removing base slug from hierarchical custom post type on a WordPress Multi-site

So, I’ve been trying to remove the base slug from a hierarchical custom post type on a multi-site build for the past week or so, and haven’t found anything that actually works yet. The post type is ...
-1
votes
1answer
23 views

Different layouts for different post types in wordpress?

What is the reason behind allowing developers to create page templates so easily and not allowing the same for posts? I have 2 custom post type named Mathematics and Mechanical I made it using the ...
0
votes
0answers
12 views

Select Subscriber As Post Author In CPT, Admin Panel

I have a custom post type, jobs. I would like in that CPT to be able to select subscribers as post authors. I found this post, which does the trick for all post types, but I would like to restrict ...
0
votes
0answers
40 views

Dynamically pull in child term and post IDs

I am using the Pods plugin on my WP site to make it easier for a custom taxonomy and custom post types. I have product categories (terms), product subcategories (child terms) and products (custom post ...
0
votes
1answer
27 views

Generating a radius search on postmeta-metavalue and adding a taxonomy to query

This is an old SQL statement found on here from way back in 2011, but its the closet to doing what I need I could find and work on. Although it does exactly what I need, displays properties within a ...
2
votes
0answers
35 views

Allowing custom role access to custom post type in back end

So I'm having some issues with this and I can't see why. I just need a custom role that can access the blog in the back end. I've added a new post type with a Capability type of blog and a new user ...
0
votes
0answers
12 views

Page listing custom type posts to be as a parent

I wanted to make a gallery, with custom post type. Now having custom post type I list it on a page called gallery (www.example.com/gallery), but when I click on the custom post itself it gives me ...