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

learn more… | top users | synonyms (1)

0
votes
1answer
16 views

Custom Post Type - Rewrite slug [duplicate]

I have a custom post type (products) that I would like to change the slug for. I have a main product page that shows all product categories. After clicking on the category, it shows all products in ...
0
votes
0answers
13 views

How to Control CSS Class Visiblity From WordPress Admin Panel based on Tax Terms

Can you please let me know if it is possible to control Visibility of some html elements like and which are loading from an specific taxonomy terms meta data? I For Example I have two metadata as ...
0
votes
2answers
20 views

Metadata for a taxonomy - is there any WordPress way of doing this?

If I have a CPT "movies" I know I can have various taxonomies eg "Director", but how can I store further information such as "director's nationality" for any one particular director ... or is this ...
0
votes
1answer
12 views

Taxonomy query of custom post displays archive instead of posts

I'm facing a strange issue displaying all posts of a certain type of custom post sorted by their category. The code below to display them works fine locally but when I view the page on the server it ...
0
votes
0answers
30 views

How to show selected value in dropdowm menu

I have a problem, I want to show the user the selected value the user has selected before. I have a custom post type I have created and I have also a separate plugin that's using a custom db. What I ...
0
votes
0answers
15 views

Pagination won't go to page 2 [duplicate]

I've created a page which uses posts 2 posts and pagination The pagination will not go to page 2, every time I click the link it reloads the page, however hovering over the page two link shows the ...
0
votes
0answers
5 views

get_next_post() not working after adding a category with ACF

I work on a wp site with various categories of products. For any single product, this was the code which would yield links to next and previous product: <?php get_header(); global $post; $next = ...
0
votes
1answer
17 views

get_post_types is not showing all registered posts

When I call get_post_types() in a plugin the output is registering only the basic set of post types. Here is the output: array(5) { ["post"]=> string(4) "post" ["page"]=> string(4) "page" ...
0
votes
1answer
51 views

How To Display A List Of CPT Posts In A Meta Box On Menus Page?

Is it possible to display a list of the custom post type POSTS, not archive link, inside a meta box on the nav menus page? Currently, it displays each CPT post inside it's own metabox, but I would ...
1
vote
2answers
18 views

Create permalink structure for one taxonomy archive per custom post type

So, I've been going crazy trying to figure this out. Essentially, I've created two custom post types, 'the_case_study' and 'the_video', with respective slugs 'case-studies' and 'videos'. I've also ...
0
votes
0answers
19 views

Bulk remove category from custom post type?

I know you can use bulk actions to add categories but how do you remove them in bulk? I have a custom post type that is using a category (as status) and it needs to basically be toggled in bulk and ...
0
votes
0answers
9 views

Set Featured Image from Form in Front End

I am creating a front end creator/editor for some custom post types. I wanted to have a button that opened WordPress' "Set Featured Image" modal (as is found when creating a post from the admin ...
-1
votes
0answers
16 views

how to create Custom post type plugin with custom UI for front end user

Really post type is very powerful in WordPress. but i have problems to create custom post type plugin with custom UI for end user. please help me on this. I have to create WP custom post type plugin ...
0
votes
0answers
26 views

Archive page for custom post type not working

I use a plugin called CPT-onomies to create Custom Post Types. I created a post type called "case", and set "Has Archive Page" to true, but when i try to view a single case, i just get 404'd. Same ...
0
votes
0answers
12 views

Populate BP Group front.php with CPT item of the same name

I'm reviving an old question here in hopes there might be some new light to shed on it. I'm attempting to display the content of a custom post type item on the custom front page of a bp group with ...
0
votes
0answers
16 views

Custom Post Type Feed displaying all posts

I'm having some problems with an RSS feed for a custom post type. If you view this URL http://intentional.wpengine.com/feed/?post_type=30daychallenge you'll see a raw feed. Everything looks to be fine ...
0
votes
1answer
26 views

Custom Post Type .current-menu-item not applying on Custom Post Type Archive Page

I am working with custom post types and I had trouble with the nav menu not getting the .current-menu-item on my custom post archive page menu item. In fact, when I was on that page or any of the ...
0
votes
1answer
25 views

Missing custom posts [closed]

I've created a new document custom post and it now appears all of the posts aren't being displayed. The count is showing the correct number but i can't see all of the documents available, it only ...
0
votes
0answers
15 views

Custom Post Type and Rewrite Slug Not working for Archive page

I'm hoping someone can help me out. I asked this on Wordpress.org but figured no harm in asking here too. I read an article about using a custom plugin to create custom post types. So I did. ...
0
votes
0answers
18 views

Post from one WordPress site to another

I have two sites running on WordPress. I have a form on one site that generates a custom post type, and I would like this custom post type to be posted to another WordPress site. How can I do this? Is ...
0
votes
1answer
27 views

Post content stays the same but permalink changes ?

This is really weird. I made a posttype ' mediagallery ' via the plugin Types fields. I simply want to load the post content and switch the posts with a next & prev button in de sidebar. The post ...
1
vote
1answer
20 views

Including a custom post type in the Archives widget

I have a custom post type called "videos" that I want to include in the Archives widget (stock widget in the TwentyTwelve theme). It DOES already appear on the archives page, but just not in the ...
1
vote
1answer
28 views

Create a page that will be used to create a custom post type

I have created an 'event' custom post type and now I want to create a page that will allow users to create a custom post type from the front-end. Is there a standard way of doing this? I could ...
0
votes
1answer
26 views

Ascending Order is not Working in Custom Post Type Listining

Can you please let me know why this code is not listing Custom Post Types? <?php $loop = new WP_Query( array( 'post_type' => 'product', ...
-3
votes
1answer
35 views

Hook H1 Into Custom Front Page

The site i'm refering to is Safety Warehouse. It is currently running on a Genesis theme, with the front-page.php displaying a grid loop of the custom post type. I want to add an H1 (or at least a ...
0
votes
2answers
27 views

Custom Post Type Permalinks with %category%

I Create New Post Types and Taxonomies. This is the script: add_action('init', 'my_custom_post_type_init'); function my_custom_post_type_init() { $labels = array( 'name' => _x('Roundabouts', ...
0
votes
0answers
14 views

Maintain custom post types and taxonomies in all themes [duplicate]

When I change the theme in dashboard, activated plugins that use custom post types, stay in the menu. But my own custom post types that I created myself disappear. Logically, It is because I create ...
0
votes
0answers
29 views

add file upload to post type

Short question but how can I include a pdf file attachment upload inside a custom post type? currently creating a new custom post type and I can't see a supports for media upload without the editor... ...
0
votes
1answer
25 views

Display CPT index page as front/home page

I'm building a website that's sole purpose is to display other websites (defined in the CPT). Think of it as a portfolio site for a company's digital assets. I have already defined the CPT and added ...
0
votes
1answer
23 views

Control content before and after custom post type loop

I am trying to create a left nav menu that contains a couple of different taxonomy lists of a custom post type. For example, the left menu might look like this... <h2>New Stuff</h2> ...
0
votes
1answer
16 views

Search that will look in custom field, post title and post content

I am looking for a way to perform a search, and while performing the search, it checks a custom field named keywords, the post title and the post content. If any of those fields have results like what ...
0
votes
1answer
17 views

Problem On Retrieving Post Meta Data on Custom Column [closed]

I am trying to add Custom post Metadata to a Custom Column. The meta-box has two text fields as Price and Company but When I publish a new post it just shows values from company in Price column and ...
1
vote
1answer
22 views

Should i delete the posts created by a plugin on uninstall?

I created a plugin which is based on a Custom Post Type. When someone uninstalls this plugin, should i delete the posts under this post type or i should just leave them untouched?
0
votes
0answers
13 views

Problem retrieving informations and displaying desired structure with custom post type and taxonomy

I have to create a website with a part concerning houses, grouped by type. I thought of using custom post type "house" and custom taxonomy "house_type". function custom_post_house() { $labels = ...
0
votes
1answer
15 views

Show custom post along with default post

I've created a custom post type named "image". Now my theme shows posts on homepage in three parameters- Fresh, Featured, Random(i'm feeling lucky). How can i add custom posts in there. here is the ...
0
votes
2answers
56 views

Display next 3 posts based on custom taxonomy

I am wondering if anyone could help me accomplish something like this: https://medium.com/thoughts-and-words/5ccef7b3e1fc with custom post types? I have a custom post type called projects and ...
0
votes
1answer
26 views

filter search result with custom post type meta key

The default search returns all post types, which is what I want. But for one specific custom post type I want to limit the result to a specific meta key value (a custom date that must be greater than ...
0
votes
1answer
41 views

Post type archive page not working

I registered a custom post type using Custom Post Type UI, and created an archive page and named it archive-recipe.php, 'recipe' is my custom post type name. But its not working, instead its using the ...
0
votes
0answers
13 views

restrict_manage_post to remove filters

Using restrict_manage_post, is it possible to remove default WP-List-Table filters? Example that I tried, but failed below: add_action( 'restrict_manage_post', 'remove_cpt_filters', 99); function ...
0
votes
0answers
18 views

Curious, possible to make admin create/edit post page to look like taxonomy page?

This idea just came to me, where I thought it would be great to have something like this for CPTs that doesn't need much content/fields to fill out. Basically a Post page where your able to add a ...
0
votes
0answers
21 views

Custom permalinks structure and custom post types

For all posts, regardless of of the post type I want the URL to be, /read/%post_id%/%postname% and have the custom post types be archives so you can go to /%post_type% and /%post_type%/%category%. ...
0
votes
0answers
15 views

Creating a new post every time an image is uploaded

I'm making this question because the one I found by searching seems not to work. I have a custom post type project on my theme. When I upload an image via the media library in the wordpress backend I ...
0
votes
1answer
20 views

Navigation menus not showing because of custom post type filter

I use this filter to show content from all custom post types in tags archive page function tagFilter($query) { $post_type = $_GET['type']; if (is_tag()){ if (!$post_type) { ...
0
votes
2answers
97 views
+50

Rewrite custom post type url's adding meta box values

I've got these custom post types (CPT) and meta boxes: Movies (CPT) Genre (Meta box) Genres (CPT) If one movie is called Die hard then I want the permalink to be: /genres/action/die-hard This ...
1
vote
1answer
50 views

Plugin fatal error

I'm trying to activate a plugin I made on a network site. I'm getting an error: Plugin could not be activated because it triggered a fatal error. I have the debug mode on and it outputs all errors ...
-1
votes
0answers
31 views

Custom permalink to custom taxonomy post

my question is simple. normally post permalinks are [the_permalink, or any page link]. here i have to set different permalinks as their post category. example: post categories[food,drinks,books] here ...
1
vote
1answer
54 views

Adding paged query to custom URL rewrite

I have set up the following to create 'pretty' post type and category permalinks: function kdev_add_category_rules() { $post_types = array( 'kdev_photos', 'kdev_videos', ...
0
votes
0answers
13 views

List custom post type as children of page in wp_list_pages

I've got a WP site, with a custom post type set for team members (called 'people'). In the site page hierarchy, I have: About -> Team Is there a way so that all entries for the team members, are ...
0
votes
0answers
5 views

Need Metabox show the values [duplicate]

I can show the metabox of my code but no works for save and get values into the field i save until <?php function reaction_buttons_meta2() { global $post; echo $_POST['reaction_buttons_off2']; ...
0
votes
1answer
25 views

Looping taxonomy in taxonomy?

So I have a CPT of references (like a dictionary kind of format for music). In it there are two taxonomies: medium_reference and reference_letter. The reference_letter lists letters A-Z, while ...

1 2 3 4 5 59