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

learn more… | top users | synonyms (1)

1
vote
1answer
15 views

Custom loop for custom post type for current author

I need to edit the below code to only display posts for the current logged-in user/author. It is currently within a Wordpress theme page template file and works well. Any help would be appreciated as ...
0
votes
0answers
6 views

How to make a single Menu Item call another Mega Menu for Custom Post Types and Custom Taxonomies?

I'm trying to build a hierarchical directory using custom post types and custom taxonomies as I've described in another question. My problem is that I cannot figure out how to make those posts ...
2
votes
1answer
20 views

Taxonomy structure of Sport site

I have a hard time figuring out how to structure a site. The site is a news site for 3 different, but related sports: Skateboard, Snowboard and Surfing. Each Sport has typically Athletes, Event names, ...
1
vote
1answer
25 views

Numeric slug on child post

I understand there are 2 different types when it comes to a custom post type: -page -post. Where page supports child pages, and post does not. However, when i try to make a child page with only ...
1
vote
1answer
15 views

Replace text in post from cvs

I have constructed a post template that i want to use to all post. I use visual composer and some add ons . I need to create post with vcs file but i don't know hot to organize the cvs inside to do ...
2
votes
1answer
65 views

Custom post type history

Here's what I have right now: Custom Post Type for a list of Draft Beers Available. These Drafts are updated frequently. I've set it up so that each draft beer is paired to a draft line number. ...
0
votes
0answers
18 views

Remove Custom Post Type slug from url, two CPT

I have 2 custom post types hilp-a and hilp-b. I want to remove custom post type slug from the url. e.g: test.com/hilp-a/test to be test.com/test and test.com/hilp-b/btest to be test.com/btest I ...
0
votes
1answer
20 views

Add special meta box to custom post type

I have managed to add a meta box to my custom post type (see code below) Now I need to add another meta box. With this box I want to display / edit a value from another table called ...
0
votes
0answers
14 views

How to replace text in shortcode with custom fields? [on hold]

How can I replace text in to the shortcode ? Example : [ult_buttons btn_title="rezultati" btn_align="ubtn-center" btn_size="ubtn-custom" btn_title_color="#f2c121" btn_hover="ubtn-no-hover-bg" ...
0
votes
0answers
11 views

Custom post type archive not displaying after site move from sub-directory

I have just moved a site from a sub-directory to the root of a domain. The move went reasonably well but I came up with two issues that have stumped me. The first which I have resolved was that one ...
0
votes
0answers
21 views

Updated from 3.8 to 4.2 and all post types changed to “post”

My client updated his website from WordPress 3.8.x to 4.2.1 in order to make a plugin verify as working correctly. We were holding off originally to do it and some other plugins all at once so we ...
0
votes
0answers
22 views

Plugin Error on activating

I'm building theme. but for custom post type, custom taxonomies and shortodes . I created the simple plugin. just plugin info and then functions to create CPT CT and shortcode. here is the example: ...
0
votes
0answers
19 views

Drag and drop template builder [on hold]

I created a custom post type with a few custom fields. Now I want to display these custom fields when I create pages from the new custom type. I would like to create a template for this custom type, ...
0
votes
1answer
33 views

Insert and then update post_type by wp_update_post

I wrote a function to insert content in the page and every date update automatic . I used wp_update_post( $my_post ); to update page . I want first insert content in top specific page and then ...
0
votes
1answer
17 views

Having Issue on Getting Metabox Checkbox Value

I have a Custom Post Type with two Metabox attached as: $offerPrice = isset( $productValuesl['offer_box'] ) ? esc_attr( $productValuesl['offer_box'][0] ) : ''; $offer = isset( ...
0
votes
0answers
24 views

How to add attributes to taxonomies that may be different from post to post?

I would like to know how I can add attributes to taxonomies and allow those attributes to have different values in different posts. For example, let's say I have a recipe custom post type and I have ...
-3
votes
0answers
9 views

Looking for a way to create MailChimp lists from WP Custom Posts [on hold]

Basically this is a Kickstarter style website based on the Franklin theme. We want to allow users to subscribe to unique Kickstarter-style campaign updates occasionally sent by the campaign leader. ...
0
votes
1answer
13 views

Associate custom categories to different user IDs

I am trying to associate custom categories created by different users to their userIDs. I did that with custom posts and custom pages, but I really have no idea on how I can do that with the custom ...
0
votes
0answers
8 views

Upon publishing a page create a duplicate of said page in a custom_post_type

Wondering if this is possible... I have a client who need to mirror some pages within a custom post type. An ideal scenario is she publishes a page and then an exact duplicate of this page (including ...
0
votes
0answers
26 views

Excerpts and Custom Post Types

I have a declared a custom post type using the Types plugin. When using a tag to display a page of these custom post types the excerpt shown is the full content of each post with formatting ...
0
votes
0answers
13 views

Display taxonomy terms, child terms and posts in a template

In a site that I am building I am trying to create a template which will display all my "product" custom post types along with their parent and child taxonomies in some hierarchical structure which is ...
0
votes
0answers
12 views

nested relationship posts2post [on hold]

I have wordpress site and use posts2post plugin for relationship. I have 4 custom post type. 1. doctor 2. Therapy 3. Article 4. Question I have complete all single relationship but I want nested ...
0
votes
2answers
32 views

Related posts by taxonomy

I want to show related posts, with the same taxonomy (artists) as the current post. In the related post I don't want the current post to appear. I am also using a custom post type. (sculptures) This ...
0
votes
0answers
4 views

Filter to order Admin Custom Post List makes template query come up empty

In my template I query the posts like so: query_posts(array( 'post_type' => 'homeslide', 'meta_key' => 'slide_order', 'orderby' ...
0
votes
0answers
13 views

Admin search ACF relationship

I have a custom post type name story. It has a custom field named 'select_artist' with a relationship to a custom post type named artist. Within the story edit page, I want to use the search box to ...
0
votes
1answer
8 views

Cant move file after media_handle_upload

i am trying to create an meta image uploader for a a custom post type with media_handle_upload() but it only returns an error teling me that it could not move the image to the folder ...
0
votes
2answers
13 views

How to add the post ID (or any other post data) to a Contact Form 7 mail?

I've downloaded Contact Form 7 to add contact forms adding a simple snippet after every post, and I've added it in functions.php like this : //if post type I add a form function is_post_type($type) ...
0
votes
1answer
61 views

Pagination not working

I have been using the same pagination query for the majority of the websites i have created. This time it is not working for some reason I have used the pagination trouble shooting links Here but ...
0
votes
0answers
17 views

Custom field value inside html code with shortcode

I would like to create a shortcode -> [myCite] which puts out a custom field (named custom_cite) value from a custom post type "post_thoughts", wrapped in a html wrapper. Now I want to use the ...
0
votes
2answers
53 views

Ignore sticky posts if post is not in meta query

I have such a wp query args: $args = array( 'post_type'=> 'myposttype', 'posts_per_page' => 10, 'meta_query' => array( 'relation' => 'AND', array('key' => ...
0
votes
1answer
25 views

Filtering custom posts by custom fields (ACF)

I'm working on a site with photo contests. Each contest has a lot of additional info, which I store in custom fields (thanks to Advanced Custom Fields). Now I want to search through contests filtering ...
0
votes
1answer
17 views

Add links to post categories and taxonomies in wysiwyg link modal?

I want to link to post categories and taxonomies in the text editor. With the "add link" modal I only can add links to existing posts, pages and custom post types but not to their categories and ...
0
votes
1answer
21 views

Displaying All Data from Custom Post Type Fields through Advanced Custom Fields

I have looked all over Google, trying to figure this out. I've made some progress but still stuck. I'm pretty new to ACF and custom post types. I have a custom post type of "Attorneys" that I setup ...
0
votes
0answers
12 views

Custom Post Type page templates

I have the following in my functions file if ( ! function_exists( 'staff_taxonomies' ) ) { function staff_taxonomies() { // taxonomy labels $labels = array( ...
0
votes
1answer
10 views

How to switch from custom post type URL to category URL?

For the past year, I've been using custom post types to distinguish my different post types (duh). Thing is, I'm now realizing that categories are more efficient in offering archived pages for these ...
3
votes
2answers
31 views

Having a custom post slug that clashes with an existing directory

I'm currently transitioning a website from their existing CMS to WordPress. I have a custom post type of 'Episodes', with a URL of myurl.com/episodes/ There is also an existing directory at ...
0
votes
1answer
11 views

Non-permalink custom taxonomy not found

I'm posting this as I found the problem, but it took me ages to find it with the mass of 'Refresh your permalinks' answers. <?php add_action( 'init', 'mytheme_create_post_type' ); function ...
0
votes
2answers
39 views

Different read-more link for each custom post type [on hold]

Trying to make a custom 'read more' link for different custom post types. Tried this code but does not work as expected. Fairly certain the if/else logic is amiss. Using a Genesis theme if that ...
0
votes
0answers
8 views

Popup panel is only displaying 1 entry ignoring all others

I have a popup panel being used for when someone clicks on view bio it will display their bio along with their name and headshot. As of right now I have four members being displayed M1 M2 M3 and M4. ...
0
votes
1answer
18 views

WP_Query function for custom post type

I've got a CPT for random homepage banner images (so we can test different images and call to action language). I've got a custom field for the post type that accepts a specific ID for each banner so ...
0
votes
1answer
43 views

custom post type plugin - single template

I'm writing a plugin that creates a cpt. I can include a template for viewing a single instance of the cpt using the single_template filter. And have it look for a template overload in the theme. ...
0
votes
0answers
17 views

Check ACF fields in foreach custom taxonomy

I currently have a custom post type page set to pull in data that's attached to a custom taxonomy with ACF: <?php $terms = get_the_terms( $post->ID, 'artists' ); foreach($terms as $term) : ...
1
vote
0answers
11 views

wp_update_post adding a -2 to the post slug

I've recently created a php file that is creating posts using the wp_insert_post function. This is working great and its inserting the post as it should do. I am leaving out the post title as I want ...
0
votes
0answers
18 views

Can a single.php file be coded to allow HTML download from a button?

I have been searching on WP and on SO for a way to code a custom-single.php to allow the HTML code in that document to be downloaded from a button on the rendered site. What I have done is created ...
0
votes
0answers
5 views

Custom post type: deactivate / null single posts but maintain archive page

How can I deactivate the single posts so they dont exist or appear or "exist", I mean how can I block them to avoid their display/ existance. more details: Basically I created CTP called "PC" , ...
0
votes
1answer
19 views

Exclude Custom Post Type & Pages From Auto-Tag Function

I am happily using this bit of code to auto-tag posts by author (thank you again cybmeta): add_action( 'save_post', 'add_authors_name'); function add_authors_name( $post_id ) { $post = get_post( ...
0
votes
0answers
12 views

Custom WP MultiSite with Workflow

This is quite a weird question, so here goes. I have this project to take 1 main site and make 200 sub sites off of it. The sub sites will have defined content areas within a page where the sub site ...
0
votes
1answer
19 views

Get-pages can't load pages with custom post types

I build a one page wordpress theme and i use get-pages to load all pages in front-pages.php , but i can't load pages with custom post type . this is my code in front-page.php : $pages = ...
1
vote
1answer
24 views

Custom Post Type Capabilities — Enable Edit, Disable Create and Delete

I'm trying to configure capabilities for a custom post type. I want to enable editing, but disable creating and deleting. create_posts cannot be set to false unless delete_posts is also false, but it ...
0
votes
0answers
12 views

How to disable a Custom post type Feed?

I have been experiencing 404 errors in my Google webmaster tools reports , the errors come from this Custom post type feed URLS. I would like to deactivate them so they dont appear anymore in my ...