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

learn more… | top users | synonyms (1)

0
votes
1answer
33 views

Custom Post Type won't Register

I'm hoping one of you WP gurus can spot what I am missing. I have a CPT that won't register for some reason. It' virtually identical to another CPT that is registered just fine. I have a custom post ...
0
votes
0answers
28 views

Pass tax_query variables in URL

I'm trying to create some URLs rewrite for my site, but now I'm stuck. I have this structure in my permalinks: example.com/%custom-type%/%category%/%postname% The full URL is already working: ...
0
votes
1answer
46 views

Display only one post each WEEK

I have custom post type named 'NEWS' where i already published 52 posts at a time. Now, in front i would like to display them ONE NEWS for ONE WEEK. So 52 NEWS will cover one year for me. My ...
0
votes
0answers
22 views

Ads below footer

A client of mine has ads on his website, which are managed by a CPT. The ads can be pulled in via a widget, hardcoded query and a shortcode. I have an issue that isn't consistent that I'm trying to ...
0
votes
0answers
52 views

wp get post meta multi array value

I am using custom-meta-boxes-wp plugin in my theme. I used "Repeatable Field Groups" in meta box. But I am feeling difficulty to geting the vlaues. I used get_post_meta(); but it returns only array. ...
0
votes
0answers
62 views

Custom post type as HTML/PHP table

I have a custom page which displays some WP members (students) using $wpdb to query the database and display these members in a HTML table. This table gets generated (populated with records) when the ...
0
votes
0answers
34 views

Sort by a date field in a repeatable group

I'm using cmb2 WebDevStudios/Custom-Metaboxes-and-Fields-for-WordPress. I have a repeatable group for events with the meta_key 'date'. The repeatable group 'date' serialized array includes ...
1
vote
1answer
17 views

With two custom post types, how to make one a child of the other in the admin menu?

Been following Justin Tadlock's nice clear tutorial on how to have one custom post type act as a dropdown for another in the admin edit screen. His example is of a restaurant CPT needing a dropdown ...
0
votes
2answers
26 views

Trying to create an iCal file for a single post

I have a 'single' page for individual workshop events and i'm tying to create an 'add to calendar' functionality. Right now i have a link setup, which passes the current post ID in a query string to ...
0
votes
0answers
16 views

Rewrite for custom type and custom taxonomy

Hello I created a custom post type using the Types Plugin, this custom type has the slug menu, and my permalink structure looks like that: example.com/%custom-type%/%category%/%postname% ...
0
votes
1answer
47 views

Overriding taxonomy and custom post type

My theme came with a custom taxonomy post type. I want to rename the original and duplicate it with another different name. I tried finding everything relative in functions.php and copy it over to ...
0
votes
0answers
28 views

Custom tag archive not working on second page

Here is what I'm trying to accomplish: I have a custom post type called entry. When users click a tag in the site's tag cloud, I want to show them all posts of the type entry with that particular tag. ...
0
votes
1answer
10 views

Changing some of the language within the revision viewer admin page revision.php

I have a custom post type, to which the term "post" is irelevent. I had managed via various hooks to change all references of "post" to something else in the main post editing pages. I suddenly ...
0
votes
1answer
53 views

Pagination problems with multiple custom post type archive pages

I'm at the end of my tether now. Really need some help! Here's the setup... I have 2 custom post types in my functions.php: // Register the events post type function events() { $labels = array( ...
0
votes
0answers
39 views

Shortcode error

I've created a plugin that includes the shortcode below, it works fine one website ( http://www.porministries.org/wordpress/?page_id=16 ) but not on another website ( http://www.rccov.com/media/ ). I ...
1
vote
2answers
78 views

Get next and previous 3 posts in a term in single post page

I have a the following Custom post type: episode Custom taxonomy: series sub terms real deal -> season 1, season 2, season 3, etc. The terms are hierarchical, and the entire thing is ...
1
vote
0answers
47 views

Media library - Limit images to custom post type

Is there some wordpress magic/plugin that will make the media library only show images that were uploaded to a specific custom post type? I have a custom post type called "artists", I want, when admin ...
0
votes
0answers
16 views

Is it possible to have public posts in a non-public custom post type?

I'm working on a theme that incorporates a cpt to manage the various team members of an organization. The team gets displayed on page with an image, name, function etc., in addition specific people ...
0
votes
1answer
76 views

Extensive search filtering and results->PDF in the front-end

Is it possible to implement the following, and if so, what is the best (or one of) the ways to do so: The setup: A custom post type 'listing' Custom taxonomies: 'artist', 'price', 'location', ...
0
votes
0answers
29 views

How to pass taxonomy terms to WP_Query along with $args?

I created a cpt and custom taxonomy associated with it. Lets say custom taxonomy name is Sports. I added terms to it - football, basketball. Now, i want to fetch post titles tagged under football ...
1
vote
1answer
30 views

Get the next event using date_query

I created a CPT called event and want to make a query to show the next future event, based on it's publish date. Here is the WP_Query args: $today = getdate(); $args = array( 'post_status' => ...
0
votes
1answer
26 views

flush_rewrite_rules on save_post does not work on first post save

I am developing a plugin for my own rapid development that creates a custom post type. The 'list' for this post type is displayed on a specific page that is created and managed by the plugin. This ...
0
votes
0answers
13 views

How to stop posts status resetting to Published

I have custom post types and custom statuses registered. The post status is updated from a custom drop down box that I have inserted into a metabox on the edit post screen. It works fine, however ...
0
votes
1answer
44 views

Save Metabox Custom Field Value

I am using this code to show post type dropdown to select available post types but when i submit the post it restores the value back to post, how can i make sure it saves it? <select ...
0
votes
0answers
56 views

Custom post type permalink throws a 404 error

I am new to WordPress and trying to build a social networking site that has Buddypress installed and one CPT. This website has a custom post type for user blogs, this CPT has posts that are linked to ...
0
votes
0answers
19 views

Setting default thumbnail when posting a link to archive page

Is there a way to set a default thumbnail for archive pages when posting a link, ie: on someone's FaceBook wall? For example, posting a link to a FaceBook wall will show up as: [thumbnail] Link and ...
0
votes
0answers
22 views

Best way to remove slug from custom type?

I need to remove a certain slug from a custom type item in Wordpress. Just now my URLs are like this: http://example.com/item/random and I want them like this: http://example.com/random I have ...
0
votes
0answers
25 views

Get link to another taxonomy from a taxonomy list

I'm currently working on a site for an artists directory. I have two custom taxonomies; Artists and Artist Genre which will be tied into a custom post type of artwork. I can get a loop to list out ...
0
votes
1answer
46 views

Shortcode doesn't display in custom post type

I created a custom post type, but when i have added a shortcode for a slider it doesn't show the slider it shows just shortcode in text. and when i change get_the_content by the_content, it shows me ...
0
votes
1answer
34 views

How to create TEMPLATES for TAXONOMIES? What I have to change in this code?

I've created custom post type and it's taxonomies. The code is: add_action( 'init', 'register_cpt_portfolio' ); function register_cpt_portfolio() { $labels = array( 'name' => _x( ...
0
votes
1answer
24 views

Is possible to add post-formats to custom-post-type?

I was wondering if there is some way to put together the custom-post-types and post-formats so I can code a new post type and offer some variations as post-formats. I'm involved in a company ...
0
votes
0answers
22 views

Custom Post Type with for Custom User Roles with restricted access to admin dashboard

I want to achieve the following functionality without use of a plugin: Create a new user role called "News Manager" Create a new custom post type called "News" Assign the capability of posting News ...
0
votes
2answers
111 views

Create post programmatically

I want to create a video gallery plugin. I am using this code to create a post: global $user_ID; $new_post = array( 'post_title' => 'chapter1', 'post_content' => 'Lorem ipsum dolor ...
0
votes
1answer
27 views

Custom post type, permalinks, taxonomies and blog posts

I am creating a custom theme for a bike shop and thought having a custom post type for bikes would be easier for the shop assistant to manage the bikes they would like to appear on their website ...
1
vote
2answers
45 views

Best practice for adding posts in bulk

I have a set of custom post types and taxonomies I've added using the Custom Post Type UI plugin, and need to enter several hundred entries ( >500 ) How can I import this data in bulk? E.g. as a csv? ...
0
votes
2answers
48 views

How to use custom field to search for wordpress post type?

I have a post type in called Publication. I also have few custom field in that post type such as Publication Year, Author... I want to have a search box with 3 drop-down fields which is All Field, ...
0
votes
2answers
24 views

Accessing a protected property of a post

Fatal error: Cannot access protected property Some_Plugin::$_some_property What is the best/least-destructive way of accessing a protected property attached to a post. The property is being ...
0
votes
0answers
34 views

Custom Post Type and Taxonomies

I hope someone here can help me with a bit of a problem. I am working on a WP site where I have created a Custom Post Type called Retailer. In there I have three taxonomies Country, Region and City ...
0
votes
0answers
17 views

Override “Automatically close comments on articles older than” per post?

I need to set a custom closing date for the comment field, per post. I havent started researching on how I should do this, so a indication on how to do this would be just as good as a plugin that do ...
0
votes
0answers
37 views

Custom post type permalink structure without post name

I have a CPT that is called city , in my permalink options panel i've set the permalink structure to /archives/%post_id% notice that there is no slug for post name. but the permalink for the city post ...
0
votes
0answers
15 views

How to create user group and add its menu icon to dashboard top level admin menu?

I would like to use the user registration under users to create an option page similar to a custom post type. Afterward, I would like to be able to directly access the created users group by clicking ...
0
votes
0answers
30 views

Custom post type not showing in wp_posts table in database using navicat or PHPmyadmin

This is really weird. I created a custom post type and saved a few posts using it. Then I managed to edit and update them. When I came to look in the database for the rows I cant find them. I used ...
0
votes
0answers
33 views

Caption is not loading on a couple images only

I've got some strange behavior going on with WordPress Images. I put up let’s say 20 images into a WordPress site on my development system through the media tab on the backend. Each one is attached ...
0
votes
0answers
17 views

meta query always fails even if data is correct

I've following query - $query = array( 'post_type' => 'accessory', 'posts_per_page' => -1, 'meta_query' => array( array( 'key' => 'accessory-bike', ...
5
votes
1answer
92 views

Select all in parent category, group by child category?

I am trying to format a custom post type for a "series". Each post is an Episode, each Episode belongs to a Season, and each Season belongs to a series (just like a TV show). I have the following: ...
0
votes
0answers
20 views

Tool Chain / Dev Stack options for robust WP webapp development?

I'm making a fairly sophisticated multisite webapp with lots of custom plugins and customs post types, custom fields, and settings. I really like to use the GUI Dev tools, like advanced custom ...
0
votes
0answers
27 views

Custom post type /feed gives 404 error

Im getting a 404 error with CTP feeds...why can this be happening? The error was detected via Google webmaster tools... how can I ammend this to allow CPT feeds? any hints? how to debug? thanks!
0
votes
1answer
22 views

Multiple Loops on a Page Without Duplicates

I have tried many different versions of this and nothing seems to be working for me. I want to display single posts of a custom post type (portfolio) each in its own div. I don't want any duplicate ...
1
vote
1answer
34 views

Pages are not saving due to custom post type

I have a custom post type "soto_user". In which I have custom meta field named "Publish" from which user can select 'YES' or 'No'. If user selects "Yes" and click Publish button then post should be ...
0
votes
1answer
37 views

Custom Post Status & Taxonomies

I have successfully registered my custom post types, custom post statuses and my custom taxonomies/terms. All is working fine but... It seems that both the 'categories' column within the custom post ...