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

learn more… | top users | synonyms (1)

0
votes
1answer
41 views

admin-ajax.php GET custom-post titles

I can't get the titles of my custom post. this is what i'm doing: //IN functions.php function fluid_scripts() { wp_enqueue_script('lateral-fluid', ...
0
votes
0answers
13 views

Admin list: sort by default by custom column

I created a custom column like this: if( (isset($_GET['post_type'])) AND ($_GET['post_type']=="sales") ) { function inventory_column($columns) { ...
0
votes
1answer
24 views

Custom Permalinks with meta value not working. Why?

The following code is supposed to work, but it does not (no Plugins activated). In the backend the permalinks are correctly shown for the custom post type, but if called in the frontend an incorrect ...
0
votes
0answers
21 views

URL Rewrite Multiple CPT

Basically I am trying to do something simalar to what has been referenced in this thread URL rewrite rules for multiple taxonomies query however it's not working for me. I am using the Types ...
2
votes
4answers
273 views

Custom edit post column - category not showing

I added a custom column to a custom post type: add_filter('manage_posts_columns', 'custom_columns', 10); add_action('manage_posts_custom_column', 'custom_columns_thumb', 10, 2); function ...
0
votes
0answers
30 views

Admin - Dequeue unnecessary scripts/styles

Currently, I'm working on a plugin where I use custom post type. In each post type edit page I've got meta data fields to set advanced functionalities. However, because the interface needs to take ...
0
votes
1answer
28 views

Can the wp_posts table have the same slug (post_name) in multiple statuses (post_status)?

I'm using function get_posts to retrieve a set of post objects that are my custom post type (CPT). I am counting on being able to programmatically flip these posts between status "publish", "pending" ...
0
votes
1answer
21 views

Display Taxonomy Term for CPT on single-CPT.php

I've been having issues with this all morning and need some help. So I made a custom post type called Equipment, then made a custom taxonomy called Equipment Types. On single-equipment.php I can get ...
0
votes
1answer
19 views

same archive template for different custom post

Suppose i have registered five custom post type like this america china nepal norway chile And to template the archive i should use like this inside theme folder isn't it? archive-america.php ...
0
votes
0answers
17 views

Change Wordpress CPT ID into Post Name

I'm using wordpress custom theme contains 3 CPT and for seo purpose I am using yoast seo plugin. For seo purpose I want title and description to look like this. CPT Lyrics - Title - Artist Name ...
0
votes
0answers
26 views

Use data-id for wordpress posts (individually)

I get the filters script implemented on my wordpress web by some developer, who's not good in wordpress functions but he did implement the filter script on web. That script is working on projects ...
0
votes
1answer
27 views

Display the current post in browser as the first post in a loop (for a slideshow)

I have a custom post type - on a single page it displays all kinds of information for the post type. There are 10 posts altogether. Below the info I have a slideshow as part of a loop that displays ...
0
votes
2answers
48 views

How to get custom post type post id from slug?

Is it possible to grab the custom post type post id just only from slug? As much i know we can get from id by using title. But there can be same title in a custom post type so as slugs are unique is ...
4
votes
1answer
76 views

URL for custom post type

For my custom post type,i had set the 'hierarchical' to true for my url to be like http://example.com/custom/parent/child/.But there is this part in the WordPress codex. Note: this parameter was ...
0
votes
0answers
20 views

what is 'capability_type' and 'capabilities' for 'register_post_type'?

My English sucks..I dont understand what the 'capability_type' and 'capabilities' do in 'register_post_type' after reading the codex.Is it for the admin or for the reader?and what exactly does those ...
0
votes
1answer
46 views

Custom post type and taxonomy permalinks - Structure

Been trying to get a nest of custom post type and taxonomy working (even took a look here) but couldn't get it working 100%. Here is the thing, I created a custom post type texturas_temp and a custom ...
1
vote
1answer
27 views

Create custom post with custom user rules

I am create a custom user post type testimonial and want to give permission to user to edit and delete there post but its show some error. 1. I created user rule. function ...
1
vote
1answer
28 views

Exclude current post when getting related post on custom post type and taxonomy

The below will return the other post in the same category but it will also return the current post too. Is there a way to exclude the current post from the query? $args = array( 'post_type' ...
0
votes
0answers
44 views

Custom post type to display multiple map markers

So I have a google map that I need to display multiple markers on. I have it working with a manual array to display the markers, but now I am trying to make this dynamic using custom post types. ...
0
votes
2answers
47 views

How do I make my archive page look like popular reviewing sites (e.g., Polygon and Gamespot) [closed]

To further clarify my question: Reviewing sites like Polygon have sections where you click on Reviews, and it shows you a page with a grid of all their reviews (latest will be at the top though). They ...
0
votes
1answer
54 views

Call to a member function add_rewrite_tag() on null

After reading this I started moving my CPT (namely "evento") to a new plugin (it was in a Bones-based theme before). The new plugin is basically a fresh WP Boilerplate Plugin folder, where I just ...
0
votes
1answer
68 views

Filters post in admin with dropdown select, custom post type

I'm trying to filter my post in my admin area with a custom filter dropdown. I use this method to make it: http://wordpress.stackexchange.com/a/45447/84541 Here is my code: add_action( ...
0
votes
2answers
23 views

Create metaboxes based on custom post type

I am using Metabox to create metaboxes for Worpdress Post and it works like a charm. Now I have installed MetaBox Custom Post Type Extension for create CPT and it works good to. I have Types plugin ...
0
votes
0answers
15 views

Custom Post Type Query [duplicate]

Hi I can't quite figure this out; Basically I want to create query which brings in 3 posts which have the same 'project-category'as the current post <?php get_header(); ?> <article ...
0
votes
0answers
41 views

Filter and paginate custom post type

I'm working on a directory of clinics. At the moment users are able to: search clinics (cpt) by address and treatment order by distance and price filter by services (wifi, parking, ...) I have a ...
0
votes
0answers
35 views

Imported Content Doesnt Show Up On Frontend

I found similar problems posted couple times, for different custom post types, but none of the solutions worked for me and these, other questions, didnt have much info provided, I'll try to give as ...
0
votes
3answers
61 views

Adding Template Post Content

I've tried searching for this using various terminology, but I always end up at questions pertaining to the php template files. That's not what I'm looking for, so I'm asking a new question. I ...
0
votes
0answers
18 views

Is there a way to sort posts by taxonomy terms? [duplicate]

I was wondering if I could sort posts at all by taxonomy terms? I've read that I can't, but I'm not too sure about that? If so, how do I go about doing so? Sorry for the rather short question. I ...
0
votes
1answer
53 views

A faster way to query custom post types with multiple conditions?

I am using a lot of custom post types (CPTs) with custom meta and so far I have been using queries like the below, to get for example all events in CountryX that happened in 2014: <?php global ...
0
votes
0answers
15 views

custom post type redirect to page

i've stucked with an CPT issue. I have one custom post type called services. So the address looks like the one: http://mydomainurl.com/services/ http://mydomainurl.com/services/chilid-1/ etc. I'm ...
0
votes
1answer
33 views

Archive of post format for Custom Post Type

Im using the CPT UI plugin to create my custom post types. I was wondering what i needed to do in order to see an archive of my custom post type by post format ie.. usually for default posts the url ...
0
votes
1answer
34 views

How can i use on a custom db table?

I have a custom db table with some data. At the moment i just want to display an overview of the values in the table in wp admin. add_filter('manage_mycustom_posts_columns', array($this, ...
0
votes
0answers
24 views

How to add page template to my own post type

I want to add native box from Wordpress where users can set a post template in Wordpress Form plugin. In wpgform-post-type.php I have declaration of register_post_type. function ...
0
votes
0answers
9 views

Filter paginated post

I'm tring to build a directory of clinics. I'm already able to search by location and treatment, filter results (clinics) by services (wi-fi, parcking, ...) and paginate them. ...
0
votes
0answers
16 views

Admin panel: Show Comment Count column also for drafts (not only for published post)

I have a Custom Post Type. In admin panel, for published posts I see the column "number of comment", but for draft post I don't see this column or the option to enable it. How to enable the Comment ...
5
votes
1answer
127 views

Best way to flush_rewrite_rules for custom post type, in a mu-plugins plugin?

I am writing a plugin that instantiates a custom post type (among other things). It is a multisite plugin and lives in the directory mu-plugins. What is the best practice for handling ...
0
votes
1answer
17 views

Custom URLs in post types make it impossible to view archive

I have a custom post type (let's call it "video") and a custom taxonomy (let's call it "section"), I would like both of these to appear in the post URL. The post URL rewriting is working fine. ...
0
votes
1answer
66 views

Display custom post type archive on page.php template

I want to display the custom post type archive of my plugin inside a normal page template. My approach was: function my_include_template($template) { global $post; if ( ...
0
votes
1answer
36 views

Editor / Add Media: Is it possible to only allow galleries?

I am writing a theme for a client where the employees sometimes have trouble using Wordpress correctly. I am using custom fields to let them add a gallery to a portfolio item (which is just a custom ...
0
votes
2answers
44 views

Custom post types and 'new WP_Query'

I have custom post type 'Partnerzy' already set. While adding new 'Partner', you select a category (kredyty, leasingi, etc.). And having that, I need to show them on a page, like this: I figured out ...
0
votes
0answers
86 views

How to make multiple upload meta boxes in custom post type

First question here. Been spectating for a while. Great community. I've been writing a simple plugin to add an upload metabox to my custom post type 'video'. I can make the first upload field work. ...
0
votes
0answers
27 views

Post_name is missing after wp_update_post

I have a problem with my CPT. Registered a partner post type and I want the partner to be able to edit it if the post is draft or pending. I can edit the whole post instead post_name. Post name will ...
0
votes
1answer
32 views

Cross reference custom post types

Just curious if can I autopopulate custom post fields (like checkboxes or select items) based on another custom posts setup? My goal is to create a custom post types "employees" which can have ...
2
votes
2answers
73 views

Ordering Posts List By Taxonomy Terms?

I am wondering how to write code to order a list of posts by their terms from custom taxonomies? Here is what I have so far: I have a page that lists all the posts in a Custom Post Type, on one ...
0
votes
1answer
61 views

Archive for custom taxonomy lists all posts instead of current taxonomy

I'm using the Types plugin for a custom post type "Session", which has the custom taxonomy "Semester". I would now like to create an archive page for each semester which is automatically generated. ...
0
votes
0answers
14 views

Custom role cannot upload media in new custom post page

Sorry if this question is duplicated. It seems to be similar to this question (Custom post type media upload error with custom user role) but I couldn't make it work. I have a custom role called ...
1
vote
1answer
17 views

Why does my content disapear when I make a page to match an archive name?

I made a custom post type called 'education'. I have added several pages to it. When it was first created I could go to http://example.com/education/ and see the posts, but I wanted to edit the ...
0
votes
1answer
22 views

Archive of custom post type not showing

I have a parent theme and a child theme (spacious). I have made a custom post type called "job-openings". a single page (using single-job-openings.php in the child theme folder) - which works fine, ...
0
votes
0answers
20 views

Reuse page/post edit screen admin UI but do not save in wp_posts table

I have a custom post type Article for which I would like to store all data to custom database table (not in wp_posts). What I want is to retain the fields on the edit screen, just store the data in ...
0
votes
1answer
77 views

Custom Post Type

I have the following code that brings in 3 posts or project posts; But I'd like it to show only posts form the current post category; <?php get_header(); ?> <article class="post"> ...