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

learn more… | top users | synonyms (1)

0
votes
1answer
11 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
6 views

How to set attachment/media icons as featured image?

I have a custom post type 'Files' and I have created a form on the front end which allows users to upload files and images. If the user uploads an image my script will use this images as the featured ...
0
votes
0answers
7 views

Custom Post Type Form on Front End - featured image still displays after submission

I have created a form on the front end of my site for a custom post type and I allow users to upload an image and I set this as the featured image for my custom post type. All this works fine apart ...
0
votes
0answers
24 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
30 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 ...
0
votes
0answers
6 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
12 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
0answers
6 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
19 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
24 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
12 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
8 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 ...
-1
votes
0answers
8 views

How to get all custom fields in a dropdown [on hold]

I would like to have all custom fields in a dropdown, how can i achieve that?
0
votes
1answer
23 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
20 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
11 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
15 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
1answer
43 views

Return array from foreach [on hold]

I have a problem with this class in the administrative area of wordpress. I would like to return the value of foreach, but unfortunately returns an empty variable! If I use the print_r inside the ...
-1
votes
0answers
14 views

How to create custom dynamic page in wordpress? [on hold]

<ul class="jobs-area-ul01"> <li> <div class="jobs-area-ul-dv"> <div class="left jobs-area-ul-left-area"> <i ...
0
votes
0answers
16 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
31 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
23 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
14 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
16 views

Custom view on data [closed]

I created two custom post types - Company and Item. I established a relation between them using Posts2Posts plugin. What is the best, most correct way to create a template/view displaying all the ...
0
votes
0answers
11 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
48 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
16 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
36 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
32 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
22 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
25 views

How to display imdb connector search results in a post type? [closed]

I am using imdb connector with a search form and I get movie details.But I wanna to create a post type for search result. Is it possible to create a post type for search result? ...
0
votes
0answers
28 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
12 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
27 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
5 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
14 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
12 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
15 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', ...
4
votes
1answer
51 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
9 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
17 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
15 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
24 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
29 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 ...
0
votes
1answer
13 views

Algorithm for a membership plugin [closed]

I want a to build a membership plugin.But i don't think a plugin like that is available if so please tell me else please guide me and give me some direction that how do i proceed There will be a ...
0
votes
0answers
15 views

Loop a Custom Post Pagination

I am having a little trouble trying to get my custom post type pagination to loop. The idea to my pagination is to only display a next field with the title of the next post. Once you hit the last post ...
0
votes
0answers
11 views

Search for words in post_type

I have a page-doctors.php with the list of doctors, these doctors are registered as post_types, the code that taking all post_type doctors is: $paged = ( get_query_var('paged') ) ? ...
0
votes
0answers
15 views

Post type tree loop

I need to get the pages of a custom post type exactly as they are in the admin panel. Example: Page1 --subpage1 --subpage2 Page2 Page3 --subpage1 --subpage2 I need this as a loop. I tried for ...
1
vote
0answers
38 views

Page Template as Custom Post Type Archive

My goal is to have the slug www.domain.com/resources used by a Page Template rather than an Archive Page, and have single CPT posts as children of that slug, such as www.domain.com/resources/post. ...
0
votes
2answers
33 views

Custom Post Type with Custom Taxonomy as Category

I have created a custom post type portfolio with custom taxonomy Portfolio Category. I can create portfolio items and assign portfolio categories to them and save these custom posts. But what I need ...