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

learn more… | top users | synonyms (1)

1
vote
0answers
28 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
20 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
22 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
28 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
48 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
40 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 ...
0
votes
1answer
27 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
32 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
46 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
52 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
54 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
21 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
42 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
79 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
29 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
48 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
34 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
23 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
39 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
25 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
22 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
31 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
38 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
39 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
34 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
21 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
29 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
14 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
60 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
32 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
41 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
18 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 ...
0
votes
2answers
43 views

Wordpress Custom taxonomy template

I am trying to create custom template for custom taxonomy. For example i have a custom taxonomy registered in WP with name brands and slug brand i used following code to register custom taxonomy. ...
0
votes
1answer
64 views

How to check if user meta field is empty in conditional else statement

Hello all I have a custom post type set up for my wordpress site within this custom post type i have a meta box with about 11 meta fields that I have added programatically. What I would like to do is ...
2
votes
1answer
68 views

Comment Email Notification for CPT Comments

I have a WordPress site where users can create new support tickets through submitting a form that posts to a Custom Post Type. I would now like WordPress to email users when there is a comment on the ...
0
votes
0answers
20 views

Role capability delete multiple post type posts doesn't work

I am making a new role called "sales" where I add capabilities to, so the sales people only can read, edit and delete leads in the admin panel. Everything works fine, except that I cannot select ...
0
votes
0answers
45 views

Create custom post type just like a page post_type

Here's what I'm trying to achieve: A custom post type with the attributes/properties of a page post_type I'm aware of the supports array which allows page attributes to be used, but this isn't what ...
1
vote
1answer
50 views

Custom loop for custom post type for current author

I need to edit the below code to only display posts for the current logged-in user/author. It is currently within a Wordpress theme page template file and works well. Any help would be appreciated as ...
0
votes
1answer
82 views

How to make a single Menu Item call another Mega Menu for Custom Post Types and Custom Taxonomies?

I'm trying to build a hierarchical directory using custom post types and custom taxonomies as I've described in another question. My problem is that I cannot figure out how to make those posts ...
2
votes
1answer
51 views

Taxonomy structure of Sport site

I have a hard time figuring out how to structure a site. The site is a news site for 3 different, but related sports: Skateboard, Snowboard and Surfing. Each Sport has typically Athletes, Event names, ...
3
votes
2answers
120 views

Numeric slug on child post

I understand there are 2 different types when it comes to a custom post type: -page -post. Where page supports child pages, and post does not. However, when i try to make a child page with only ...
1
vote
1answer
22 views

Replace text in post from cvs

I have constructed a post template that i want to use to all post. I use visual composer and some add ons . I need to create post with vcs file but i don't know hot to organize the cvs inside to do ...
2
votes
1answer
71 views

Custom post type history

Here's what I have right now: Custom Post Type for a list of Draft Beers Available. These Drafts are updated frequently. I've set it up so that each draft beer is paired to a draft line number. ...
0
votes
0answers
57 views

Remove Custom Post Type slug from url, two CPT

I have 2 custom post types hilp-a and hilp-b. I want to remove custom post type slug from the url. e.g: test.com/hilp-a/test to be test.com/test and test.com/hilp-b/btest to be test.com/btest I ...
0
votes
1answer
261 views

Add special meta box to custom post type

I have managed to add a meta box to my custom post type (see code below) Now I need to add another meta box. With this box I want to display / edit a value from another table called ...
0
votes
0answers
29 views

Custom post type archive not displaying after site move from sub-directory

I have just moved a site from a sub-directory to the root of a domain. The move went reasonably well but I came up with two issues that have stumped me. The first which I have resolved was that one ...
0
votes
0answers
73 views

Updated from 3.8 to 4.2 and all post types changed to “post”

My client updated his website from WordPress 3.8.x to 4.2.1 in order to make a plugin verify as working correctly. We were holding off originally to do it and some other plugins all at once so we ...
0
votes
0answers
34 views

Plugin Error on activating

I'm building theme. but for custom post type, custom taxonomies and shortodes . I created the simple plugin. just plugin info and then functions to create CPT CT and shortcode. here is the example: ...
1
vote
1answer
72 views

Insert and then update post_type by wp_update_post

I wrote a function to insert content in the page and every date update automatic . I used wp_update_post( $my_post ); to update page . I want first insert content in top specific page and then ...