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

learn more… | top users | synonyms (1)

0
votes
1answer
8 views

Change upload_dir folder at a certain cpt but cant change back

im try something with the upload_dir filter I check the current CPT with this function function get_current_post_type() { global $post, $typenow, $current_screen; //we have a post so ...
0
votes
0answers
12 views

Custom Post Type Taxonomies

I have successfully looped through the taxonomies that I set up for a custom post type, and you can see that here: http://www.methodsconsultants.com.php53-13.dfw1-1.websitetestlink.com/tutorials/ ...
0
votes
0answers
7 views

'Preview Changes' in CPT with Post Formats throws 404 error

I've tested a few custom post type plugins (having post formats support). ISSUE: While editing any CPT entry if I want to view those changes and click on 'Preview Changes' button, it throws a 404 ...
0
votes
1answer
5 views

Echo custom post meta from options array

The code below comes from: var_dump(get_post_custom($post->ID)). How can I echo the value of artist_seo_description from my PHP script? array(5) { ["_edit_last"]=> array(1) { [0]=> ...
0
votes
0answers
25 views

Querying two different post types with the same taxonomony

I have a two custom post types "venues" and "events".. How do i query "venues" then display all the "events" that have the same taxonomy values. <?php $taxonomy = 'venue-name'; ...
0
votes
1answer
13 views

Why isn't a list of posts from my custom post type displaying in this widget?

I have a custom post type called 'blog' . I wish to show a selected number of posts from this custom post type in a widget. But all I get is 'No listing found,' which is the else statements if no ...
0
votes
0answers
9 views

Show different custom post types under one admin menu

Hi, I've been playing with the custom post types in wordpress 4.1.1 and they're truly great. But I need help in trying to manipulate the admin interface. If I set up two new post types I'll get this ...
0
votes
1answer
11 views

How to Update post status using meta data in Custom post TYpe

I have custom post type and have some some meta field it. I have a select field 'Publish' to change post status. if I set it 'yes' and click on Update button then post will be published and if i set ...
0
votes
1answer
13 views

Custom Post Type Archive Pagination

I've set up a template called archive-gallery.php, and I have pagination working, however, the query is ignoring my posts_per_page value and using the value that is in Settings > Reading called ...
0
votes
1answer
20 views

Filtering the_content, but still need to display the unfiltered content inside filter

I'm working on a plugin that creates and displays Custom Post Types. I'm using ACF for additional fields. Problem comes when I need to add the actual content into the filter. There's a slideshow in ...
0
votes
1answer
18 views

How to add page under a custom post type?

I would like to add a page that uses a custom template (page-coffee-about.php), so it will appear under a custom post type called "coffee". The URL of the custom page should be ...
-2
votes
0answers
5 views

buddypress groups_is_user_member for filtering out cpt's by those outside of the group

there is almost no code/examples laying around. long story short I need to use groups_is_user_member to display only cpt's that are created by any member in the groups a user is a member of in ...
1
vote
2answers
33 views

Custom post type archive page template

I am trying to implement an archive for a custom post type: http://mywebsite:8888/about-us/client-news/2015/03/ The problem is that it keeps serving me a 404 page and I cannot work out what page ...
0
votes
0answers
12 views

Post is not being published after clicking on Publish button in Custom Post Type

I have custom post type named "soto_user". here is the code- add_action('init', 'soto_user_create_post_type'); function soto_user_create_post_type() { $soto_user_labels = array( ...
0
votes
1answer
16 views

Excerpt function for any content

Is there an excerpt output function in wordpress I can hook into regardless of the field used, rather than just the main content field? I have a CPT using custom fields, and rather than creating a ...
0
votes
0answers
10 views

assign custom post type to another post type

My question is based on those answer: http://wordpress.stackexchange.com/a/85281/68506 and http://wordpress.stackexchange.com/a/5778/68506 What I need is 2 dropdown from a custom_post_type in ...
0
votes
0answers
4 views

Capability type in custom post type set and all actions for custom post type disappears?

I am stuck working with custom post types and capabilities. I have searched for 2 days and tried all kinds of code but till now there is no solution. I hope to find some help here if possible. Thank ...
0
votes
2answers
41 views

Wordpress custom post type

hello i have post_type "product" and taxonomy "price" can someone help me to query that custom post type with the selected taxonomy? my current code is like this <?php $term = get_term_by( ...
0
votes
0answers
3 views

Excerpt text not showing in meta box, causing flush on update?

I've created a custom post type that supports excerpts. On a post update of this custom post type, the content in the textarea for the "Excerpt" meta box is saved, however it isn't output into the ...
0
votes
0answers
18 views

How to get Last post Id of custom post type in wordpress

I want to get last post id of a custom post type in wordpress. For this I tried this code- args = array( 'post_type' =>'soto_property', 'posts_per_page' => 1, ...
0
votes
0answers
6 views

Ordering in custom wordpress query

I have a custom wp query <?php $aId = get_the_ID(); $aList = new WP_Query(array( 'post_type' => 'porti', 'posts_per_page' => -1, 'meta_key' => 'aName', 'meta_value' => $aId, ...
0
votes
1answer
19 views

group posts by month/date ignore years

Need group posts from custom post type by post date. Example: Jan (all posts posted in januar for all years 2010,2011 ... 2015) 1 (all posts posted in 1 januar for all years 2010,2011 ... 2015) POST1 ...
0
votes
1answer
25 views

Query Posts that have Custom Taxonomy

I'm having trouble querying posts that have multiple tags from a custom taxonomy. For example, if I have a post called "Strawberry Splice," it has the Meal Types (custom taxonomy) "Gluten Free" and ...
-1
votes
0answers
26 views

Dynamically pre-populate Gravity Forms field with custom fields from custom post types [on hold]

Tried to be as specific as possible in the title. Essentially I have a real estate site that I am working on that has property listings. The property listing is a custom post type and there are ...
0
votes
0answers
14 views

How to get main div html to print a list of posts inside?

I have created a function that lists custom post types with a specific term and prints the html. I'm using it as part of my plugin code. I reused part of this information: ...
0
votes
1answer
25 views

Attach a custom post type archive to a static page

So lets say you have a static home page and your posts page is a page called "Blog" or something along those lines. Using <?php post_type_archive_title(); ?> in the header.php will then allow ...
0
votes
0answers
10 views

how to sort post in admin column by recently

i have created custom post type my problem is: in admin column, posts are sorted by ID how can change it to date. In other words, i want to sort post by recently
0
votes
1answer
33 views

Change “empty trash” button text?

I was able to find information on how to change the edit views text but so far I've come up empty with changing the text of the "empty trash" button. I'd like to change it for my task management CPT ...
0
votes
1answer
20 views

How to give all CPT a folder automatically based on their slug

This is what I have now and working: function get_custom_post_type_template($single_template) { global $post; if ($post->post_type == 'amazon') { $single_template = TEMPLATEPATH . ...
0
votes
1answer
28 views

erase post excerpt limitation [×]

i have a custom site in homepage have problem of post excerpt with max 35 word, now i want eliminate this limitation, after search in varius file the limitation and after individuate i have changed ...
0
votes
0answers
18 views

How to have working breadcrumbs with several taxonomies associated with a custom post type

I have a breadcrumb / navigation problem. I don't know if it's possible to achieve what i want or if i can do it with mysetings or not. I have a custom post type "Formation", for which i created 2 ...
1
vote
1answer
28 views

Add CPT as subpage under custom page

I have created a menu page with the following code: add_menu_page('My Page', 'My Page', 'administrator', 'admin.php?page=my_page', array($this, 'my_page')); And now I want to use custom post types ...
0
votes
0answers
19 views

Wordpress MVC plugin routing [closed]

How write router in my MVC plugin for custom post type data (not post type). How to call my method from controller ( example cart->view)
0
votes
1answer
18 views

Custom Post type archives / categories give 404

I have a client that wants a blog, a press section, and a "More Posts" section for feel good, community service type of posts. I used the standard post type for the blog, and everything works fine. I ...
0
votes
2answers
15 views

Is there a way to override the <title> tag specified in header.php?

Firstly this is neither an SEO question nor a question about changing the title tag sitewide. If you google my question those are all the answers you see. So we have our own theme and we have ...
0
votes
1answer
27 views

Metadata for ACF Relationship fields [closed]

I am using the ACF Relationship field to set up a many-to-many relationship between two custom post types (one can add many Outlets to a Product). The relationship works well, but I would like to add ...
0
votes
0answers
11 views

How to use one taxonomy for different needs?

I have a taxonomy called "Names" (like tags) where I store people names and for example, I have a custom post type called "Photography" where I want to tag people who appears in each photography and ...
0
votes
0answers
13 views

Custom Post Type with /%shop_name%/gallery/%gallery% permastruct?

I have created a custom user meta = shop_name in User Profile and custom post type gallery I want my permalink to be in form of /%shop_name%/gallery/%gallery%. Every user has a custom user_meta = ...
0
votes
0answers
22 views

Using pages as tags (this is as specific as I can get, please read on…) [on hold]

tl;dr: I want to give posts attributes such as tags, but I want each of those "tags" have a seperate page so I can give them a template and put in lots of information for each and every one of them. ...
0
votes
1answer
26 views

Get parent categories of custom post type

I'm trying to display all the categories that belong to the custom post type that the user is in. For example this post: http://bit.ly/1ANisxN Is a custom post type that belongs to this page ...
0
votes
2answers
20 views

Assign category a default post type

This one has been bothering me for a few days now, so I'd really appreciate any help you can give me. Problem overview: I have a plugin which automatically creates a post and assigns the category ...
0
votes
1answer
17 views

Emailing Authors When Post Is Published

I have gotten the code to do this. However the theme I am working with does not save emails the authors input on the front end into the normal wordpress email. It instead saves it in a variable. ...
0
votes
1answer
9 views

Custom Post Type URL Rewriting

I would like to add parameter to custom post type posts So I need to do my url like that. http://www.mywebsite.com/mycpt-slug/post-slug/myparameter I found this solution but here it's work with post ...
0
votes
0answers
25 views

Modify shortcode to work with custom taxonomies and slugs

I am using this code which works fine with posts but I am looking to modify it so that the user can specify in the shortcode: custom post type name taxonomy name slug of taxonomy category For some ...
-6
votes
0answers
17 views

Youtube Channels list [closed]

Want to show only youtube channels list and when click each channels it should appear in new page shows current channels videos.
3
votes
3answers
108 views

Filter for “get_post_type_archive_link()”

I tried to find filters or a hook to modify link returned by this function get_post_type_archive_link() I have gone through most of the documentation. I'm not sure it's not there or I'm not able to ...
0
votes
1answer
25 views

Sorting on Taxonomy in archive page

<?php get_header(); ?> <?php //Define the function function customize_customtaxonomy_archive_display ( $query ) { if (($query->is_main_query()) && (is_tax('employee'))) ...
-1
votes
3answers
43 views

Custom Post Type meta value is being saved in array, instead of just the string (as value)

So, this is how WordPress is saving my CPT meta: array(8) { ["product_id"]=> array(1) { [0]=> string(10) "abcdefg987" } ["end_date"]=> array(1) { [0]=> string(10) "02-02-2015" } ...
1
vote
2answers
81 views

How to make custom post meta wp_editor translatable?

I have custom post type named soto_property in which I have added three wp_editor as post meta, using this code - wp_editor( htmlspecialchars_decode($valueeee1), 'propertyEditor1', ...
1
vote
1answer
42 views

Advanced or not so advanced pre_get_posts query

I would like to only show posts that have "now and future" children using pre_get_posts action hook. Does anyone have an idea of how to achieve this? function pre_get_posts($query) { ...