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

learn more… | top users | synonyms (1)

1
vote
1answer
371 views

Does WordPress consider a post name unique if that same post name is in multiple Post Types?

I have a situation that I thought WordPress handled, but I seem to have a misunderstanding about how it works. Posts of the same name, under different custom post types, are auto incrementing. I ...
0
votes
2answers
383 views

Is it possible to add posts and images (auto resize) for custom post types with a script?

I have a specific need to import many post with featured images into a custom post type. The issue is, I need this to be a script because it runs off of another system that collects all the data. I ...
0
votes
1answer
644 views

wysiwyg editor don´t export paragraph <p>

I use cmb for my custom metaboxes. What I´ve done: 'type' => 'wysiwyg' My WP-Backend: (HTML-Editor): <h1>Headline</h1> Paragraph Browser-Source just looks like: ...
0
votes
1answer
29 views

Page for custom post type

I'm a newbie in WordPress and I've just created a new custom-post type called arts. Is there a way I can create a custom page to display the 'art's custom type? The custom-post type has thumbnails ...
4
votes
1answer
191 views

Duplicating custom post type and its posts

I have a custom post type with over 100 posts. I want to create another custom post type and have the same posts with the same post titles. Is there a simple DB query that will allow me to do this, or ...
0
votes
1answer
312 views

Tax query not producing any results

I have created a custom post type called 'course' which has 7 posts each being an individual training course. I've also tagged them with individual custom taxonomies 'course_codes' eg. h001, h002, ...
3
votes
1answer
291 views

rewrite get parameter with custom post type

I am trying now for a couple days to solve the following Problem: I have a custom post type called gallery. I need the URL http://example.com/gallery/FOOBAR to be parsed like ...
2
votes
2answers
77 views

Custom Post Type 'hierarchical' Help!

Not quite sure why it's even available because I cannot find any documentation on how to make a custom post type hierarchical other than in the optional parameter 'hierarchical' => true....Can someone ...
1
vote
1answer
1k views

Custom post type and taxonomy - show related posts

I have a Projects custom post type with a custom taxonomy of Services. Each project can have multiple services ticked. On the project page I am using the following code to pull back related projects ...
0
votes
1answer
3k views

Add custom attributes to a post

My blog is mainly composed of posts describing hiking. Actually, since I just moved from a Wordpress.com blog to a self-hosted Wordpress blog, every hike is inserted in a simple post. However, every ...
2
votes
1answer
1k views

Custom post types and child theme

Okay, here's the deal. I am working with a child theme and I want a custom post type. What I did Added the following code the functions.php of the parent theme. add_action( 'init', ...
0
votes
1answer
385 views

Creating teams of users in Wordpress

I'm currently working on a University project wich is a website for managing a GameJam event that occures every 6 months. Our users will be in teams of 1 to 4 people and will be able to post about ...
0
votes
1answer
437 views

Empty meta-box returns publishdate if no value is set?

I have no idea why this would/could happen. I have a custom metabox for an "event_end_date" set for a custom-post-type. If I leave this field blank it always puts out the publish-date of the post ...
12
votes
4answers
6k views

Remove custom post type slug from URL

Haven't found a useful answer for this. I am aware of the conflict issues and all the problems this may cause, I'm curious if it's POSSIBLE not SUGGESTED. This will require WP rewrites, I know this ...
0
votes
1answer
692 views

How to sort custom post type posts in default order by multiple fields?

I'm with a non-profit that paid for development of a custom post type plugin that will help us track endangered plants that we're keeping in cultivation, rescued from development. We're mostly happy ...
0
votes
2answers
2k views

Custom SQL Query on Custom Post Type. Order by Taxonomy?

I've created a custom post type called 'publications' and a custom taxonomy called 'topics'. I'm also using the standard taxonomy of 'category'. My Custom Query makes sure that it fetches ALL ...
0
votes
1answer
3k views

How to get source of custom meta image?

I'm working on a CPT (custom post type) page template and would like to get the source of custom meta image. For post_thumbnail's this is rather easy using wp_get_attachment_image_src(), but if I ...
1
vote
2answers
728 views

custom taxonomy relationship

I'm customizing wordpress by creating several taxonomies for a website. Actually, I created 'Services' custom post type with several taxonomy in it. Then, I'm going to create 'Case History' custom ...
1
vote
2answers
557 views

How to produce a sub-page-system in Wordpress

I am currently new to Wordpress development and I am developing a custom theme with a few custom post types and custom functionality. For the most part, it was pretty easy to find the information I ...
3
votes
4answers
9k views

List all posts in custom post type by taxonomy

Is there a way I can list all posts in a specific custom post type and arrange them by the custom taxonomy term attached to them? For example; Taxonmy Term #1 Post Type Post Type Post Type Taxonomy ...
0
votes
1answer
230 views

How do I filter a custom post type loop by a field?

OK, very simple task, I'm just not good at PHP. I have a page where I want to list some staff using a styled list. Here is the page all working fine, I just need to divide the results - ...
0
votes
1answer
132 views

Fast worpress backup/clone

i have a problem with 2 websites. I have for example site1.com site2.com How can i make a perfect clone of site1.com for site2.com? i mean i want a method that i can do this in minutes, not ...
0
votes
2answers
429 views

Add Permalink to Post Thumbnail, syntax code issues

I´d like to link the_post_thumbnail by using the the_permalink. I do this (It Works without link) <?php $args = array( 'post_type' => 'xyz', 'posts_per_page' => -1, 'orderby' => 'rand' ...
2
votes
2answers
484 views

Custom Post Type menu name

I've created a custom post type with my requirements. I used "WP Video Gen" as menu label. But I want red marked item to name as "Videos". Is it possible? Ref: http://ScrnSht.com/jcvlhy Thanks in ...
0
votes
1answer
78 views

Custom Type add Transitions

I have created a custom post type for a slider (namely Piecemaker). I can add posts with featured images and descriptions, that can be used with the slider. Also, I have added a taxonomy for actually ...
2
votes
1answer
347 views

Filter posts with meta_query NOT IN where value has multiple values

I would like to use a meta_key to store multiple values in that key. Thereafter, I would like to filter away posts that do not contain a specific value in the key. In other words, just show posts ...
3
votes
2answers
2k views

How do I paginate search results for custom post types?

I have a Custom Post Type called "cars" that stores several custom fields along with the standard Title/Description fields. I need users to be able to search through the CPT based on the custom fields ...
1
vote
1answer
176 views

Custom Post Type Nav to Subpage

I've registered a post type for an audio plugin, the post type is "Custom Players" in the admin and has its own tab on the admin sidebar. I'm just curious if there's a simple way to move this out of ...
0
votes
2answers
677 views

How to change the title of a Meta Box on a specified Custom Post Type? [duplicate]

Possible Duplicate: Change The Title Of a Meta Box Is it possible to change the title of a Meta Box on a specific Custom Post Type add or edit page? For example, if I'm viewing the post ...
0
votes
1answer
700 views

Taxonomy-{taxnonomy}.php is not working

I have just created a custom post type (portfolio) for a wordpress website. I also have added a Custom Taxonomy called (portfoliocategory). I have created a archive page for my Custom Post Type ...
0
votes
1answer
161 views

Custom post-type custom query - show all posts

I've got a taxonomy archive to show custom post-types, its got a custom query calling the posts - I can't figure out where to put showposts in it. global $wp_query; $term = get_term_by( 'slug', ...
0
votes
1answer
160 views

Permalinks not working (404) for the 'item' post type

I have searched various forums and blogs, however I could not find the isuse so far, neither a way to fix it. item does not seem to be a wordpress-reserved word. My custom post type registers just ...
0
votes
1answer
675 views

Multiple parameters in a custom post type url rewrite

I have a custom post type called venues currently they display through the url format: http://mywebsite.com/venue/{venue-name} I would like to have the format: ...
2
votes
2answers
4k views

Multiple orderby values in WP_Query

I'm trying to come up with a query to sort by multiple orderby values. Here's what I have so far: $dept_id=2; $query=new WP_Query(array( 'post_type'=>'wpcontactus', ...
4
votes
1answer
204 views

Prevent reload confirmation after AJAX save

I am saving information in the admin panel via ajax. The problem I'm running in to is the "Are you sure you want to navigate away from this page" popup appear, even though everything has been saved. ...
2
votes
2answers
126 views

I need to add a custom “cover” to every new post — plugin or custom setup?

I'm creating a site that's basically like an online book, and every post is a chapter. Each chapter gets a customized, specially designed "cover" page that can't really be designed in the Wordpress ...
0
votes
1answer
265 views

Why is my custom post query shortcode only showing 1 post?

I created a shortcode for a custom post type so I can show the posts in a page. It works, except it only shows 1 post. here the code... anyone know what's wrong? // this is the shortcode function ...
1
vote
1answer
2k views

Internationalize / translate custom post types & taxonomies

I've created custom post type and taxonomy via generator, but not quite sure how to make it translatable. Google doesn't help in this. I have no idea where to put text-domain here and things what I've ...
0
votes
1answer
38 views

“After file loaded” action

I have a plug-in that allows for repeatable fields. There will be an image and the image description. The description allows for tinyMCE editing. There are obviously problems with this, but I think I ...
0
votes
2answers
1k views

highlight parent page menu item when in custom post type

in a website that I am building I have a portfolio custom post types (called: "project") to show my portfolio items. The page that holds the loop of the custom post type is a custom page called ...
4
votes
4answers
7k views

How do I add a new custom post format?

How do I add a new custom format while making a post in WordPress? The default formats are standard, aside, image, gallery... I want to add a new format of 'xyz' name. How can I do it?
0
votes
1answer
44 views

How do I display the index position of a post from a custom post type?

So I have a custom post type (ex. songs) and have a few posts that I created for this post type. I want to display them on a webpage in order (ex. 1, 2, 3, ...). How do I get the index position and ...
2
votes
2answers
333 views

Allow User to Edit Page Based on their Email

Quick Info I am using the Posts 2 Posts plugin in order to create a relation between Teachers and the Classes they teach. The teacher's page is a custom post type of faculty in which teachers are ...
4
votes
1answer
1k views

Post revisions don't save or show up only for custom post types

My website makes use of a number of custom post types as well as the traditional "posts" and "pages" types. For all "posts" and "pages" revisions show up as they should, with a history of edits ...
5
votes
2answers
7k views

Custom post type - order field

In a custom post type, is there a way to include the "order" field that is available for pages? Is there any built-in logic that prevents duplicate values in the "order" field? The idea is to be ...
0
votes
1answer
152 views

Displaying media for custom post type

I created a custom post type for Products. I can display all the fields no problem (either in a list or a single-product.php). I wanted to use the Media library and associate an uploaded picture ...
0
votes
1answer
1k views

get tags from custom post type

I have a custom post type called "portfolio" with 2 registered taxonomies : portfolio_category and portfolio_tag. I'm using a custom theme that use a lot of javascript/jquery. So this is how the ...
0
votes
2answers
201 views

Getting thumbnails of a custom posts featured images in a page-templates metabox

I guess I need to know how to call meta data into metaboxes for beginners. I'm using $posts = get_posts(array( 'post_type' => 'slidertype', 'post_status' => 'publish', ...
0
votes
2answers
73 views

Missing the first 6 Posts and displaying posts that are after the latest 6

Is it possible to run an array to not show the first 6 posts, but then to show posts labeled 7-15 say? So that way I can display the first 6 posts elsewhere and then the rest somewhere else? More ...
0
votes
1answer
528 views

Extracting Address from Custom Post via Javascript for Google Maps API

I am created a theme with custom posts which outputs to a Google Map with place markers. Users will create a custom post users and include street addresses which will be geocoded using Google's Map ...