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

learn more… | top users | synonyms (1)

0
votes
1answer
12 views

wp_update_post on specific custom post type

first of all, im sorry for my poor english, when i upadte a post this code changes the post slug to a "profileid" costom field value.. add_action('save_post', 'my_custom_slug'); function ...
0
votes
1answer
11 views

Custom Post Type Title Using Advanced Custom Fields Repeater

I'm a bit new working with this plugin - and Wordpress in general, so forgive me if this question is properly documented somewhere - I just can quite figure out how to Google it. I have an Advanced ...
1
vote
0answers
21 views

Do attachments added to custom post types have a post parent?

On attachment pages, I have a link back to the post/page where the file was uploaded. (This is not displayed for files that were directly added to the Media Library and that's fine.) For attachments ...
1
vote
1answer
20 views

How to get the post type from a category id?

I am trying to find out the post type from a category id. Suppose that, when i am opening a category page localhost/project/foobaar/category/pen I want to know the post type to which category - ...
0
votes
0answers
16 views

how to insert post in wordpress with meta

How can I get the data from a table into the wordpress posts? I use this code but not corectly works... if (isset($_GET['SQL'])){ global $wpdb; $num; $rows = $wpdb->get_results("SELECT * from ...
0
votes
1answer
13 views

add custom tags for custom post type in wordpress

I have many custom post type and I want two of them to be relate by tags. These tags are only useable to these two custom post type only. like I have two custom post type 1. books 2. writer and I ...
0
votes
0answers
10 views

Gravity forms plugins image upload code [on hold]

I want to change dpi of an uploaded image before uploading that image and before saving into database.
0
votes
2answers
21 views

Get term name without a foreach loop

I currently have this: <?php $terms = wp_get_post_terms( $post->ID, 'artist-genre'); foreach($terms as $term) : ?> <li> <?php echo $term->name; ?> </li> ...
-2
votes
0answers
21 views

filter posts based on custom fields

I am currently building a theme fore a wordpress website with a custom post type, I wish to display the information from this custom post type in a sortable table. The information will be come from ...
0
votes
1answer
17 views

Calling related posts to a custom post type, taxonomy & Tag id

I'm trying to call the related posts of a custom post type by the category of the post that is loaded on the page. Below is where I am at - <?php ...
0
votes
0answers
13 views

Custom post category page not working

I created custom post taxonomy called 'blog' I use archive.php to display whole posts from this category. But when I click to view the category page it throws 404-not found error. Link to the ...
0
votes
0answers
7 views

Menu not showing while using filter hook for custom posts

I have a custom post type named event and each event has a meta value named event_date. event post type has two custom taxonomy event_category and event_location. On the homepage I'm trying to show ...
0
votes
1answer
22 views

Parent child relationship in custom post type

How can I maintain the parent child relationship in custom post types, so that I have a uniform URL structure? I want to make a URL structure up to 4 levels, e.g. ...
0
votes
1answer
44 views

Get all taxonomies for all post types

I would like to get all the available taxonomy for each (custom) post type. My aim is to list for each post type, each taxonomy like category, tag and for each of these taxonomy to get all register ...
0
votes
1answer
24 views

Pass the_post() as a parameter

I would like to take the following code sample <?php while ( have_posts() ) : the_post(); ?> <h2><?php the_field('title'); ?></h2> <p><?php the_field('desc'); ...
0
votes
1answer
14 views

Hierarchical taxonomy in permalink structure

I have a custom taxonomy called Area, which is hierarchical like so: UK - London -- Chelsea Currently my permalink is setup to rewrite like so: 'rewrite' => array('slug' => ...
-1
votes
0answers
9 views

remove file Under: Uncategorized in Genesis framework [on hold]

Inbuilt comment system is appearing on the page and i want to disable it. So tell me the exact location where to make changes
0
votes
1answer
24 views

Prevent author role from editing others posts

I have created a custom post type "Extension" and a role "Extension Author". A user in this role should only be able to edit his/her own extensions. As it is now the user can click "edit extension" ...
0
votes
1answer
20 views

getting a blank login page :( any way I can fix this without having to do a clean install?

here's the site: www.evolvtec.golocalexpert.com Parse error: syntax error, unexpected '}' in /home2/inbrazil/public_html/evolvtec/wp-content/themes/Divi/epanel/custom_functions.php on line 1264 ...
0
votes
0answers
20 views

Custom field value of “0” won't display? [on hold]

I've built a Custom Post Type created by a front-end user form (Gravity Forms). On the single-post page, the other data from the form displays perfectly, however, if any of the values are 0, they will ...
0
votes
0answers
8 views

Active class in primary Nav and Custom Post Types

On the following Dev site (http://fcr.betaforming.com/), a "current-menu-item" and/or "current-page-parent" type class isn't getting added to the nav for individual blog posts or any of my other ...
0
votes
3answers
24 views

Cant insert wrapper div into index.php

I'm having an issue inserting a wrapper div into my php index file that we're using for the front page of the site. Right now it looks like this: And it needs to look like this: I'm aware this ...
0
votes
0answers
11 views

How to get custom post type title, excerpt, thumbnail and permalink by post ID?

I have to generate several "loops" to get the title, excerpt, thumbnail and permalink of a custom post type 'charity' by post ID, because I will have multiple posts (charities) I need to target with a ...
0
votes
0answers
17 views

404 trying to display list of custom taxonomy [duplicate]

I have created a custom post type and I am also using the custom post types permalinks plugin. If I browse to /myposttype it returns all the relevant posts, which is ok. If I browse to ...
0
votes
0answers
9 views

Create a multi input search form

I wanna create an advanced search form for a custom post type, with 3 different text input. I tried alot of ways without any good results, the first input is for adress and the second for tag and th ...
0
votes
2answers
20 views

Redirect to archive is single post has a certain term assigned to it?

I want to redirect any single post to its taxonomy term's archive page if it has a specific term assigned to it. So, if a post of a term "series" at: domain/series/post/ I want to redirect that ...
0
votes
1answer
15 views

Add a image to a post published on a CPT from the front-end

I created a CPT with a page where you can add posts from the Frontend. This is the code in the fuction.php: // Hook into the 'init' action add_action( 'init', 'register_cpt_promociona', 0 ); if ( ! ...
0
votes
0answers
21 views

Pagination on custom post types

Pagination works in the front page but in custom post type page it doesn't appear. Post type: add_action('init', 'portfolio_register'); function portfolio_register() { $args = array( ...
0
votes
0answers
22 views

Working with gallery shortcode and get gallery images

The only way I've been able to get the "current" gallery images from a post has been through "if has_shortcode" and checking for a gallery and getting the gallery images. In this way the client can ...
0
votes
1answer
9 views

Post Type Support Array Not Working

I am attempting to remove support from a post type, but I can't get the array to work. I can get the string to work -- remove_post_type_support( 'product', 'editor' ); but not this array -- ...
0
votes
0answers
12 views

Create custom field & behavior for custom post type

I want a custom field that stores a file. There is also a "generate" button next to the field that generates the file which then stays with the post. Is something like this possible?
0
votes
1answer
9 views

Pulling in Related Posts based on Post Type array

I'm trying to create a Related Posts section on my single.php file and I'm using this as a starting point (http://www.wpbeginner.com/wp-tutorials/how-to-display-related-posts-in-wordpress/) and my ...
0
votes
0answers
47 views

How To Achieve This URL Structure? [duplicate]

I have a custom post type of Dining, with a slug of "dining". That is the only thing that must stay the way it is. My desired URL structure is like so: site.com/dining site.com/dining/dining-post OR ...
0
votes
1answer
19 views

BCC email to subscribers

I have a custom post type "monthly bulletin" and need to send a blind email to subscribers when a new bulletin is published. The code below works to send to subscribers, but emails are visible to ...
0
votes
0answers
10 views

Relationships are coming back with post IDs and not post Objects [closed]

I've tried pods bidirectional relationship and posts 2 posts now I'm using ACF 2 way relationship Anyway, I have the relationship setup and am linking the items and I am see the relationship as ...
0
votes
0answers
26 views

Displaying meta box data on a page [closed]

I have a custom theme option and tab system in my admin panel. I am displaying my metabox and theme options by using this CMB. The issue I am having is display a saved metabox field at the frontend of ...
0
votes
1answer
22 views

How to organize content for tutorials website? [closed]

First of all forgive for my poor english and i am a beginner in the field of wordpress. . I am planning to upload free tutorial website whose layout is as shown below: My requirement is: 1. The name ...
0
votes
1answer
22 views

get_the_title() is returning results from previous loop

I'm attempting to loop thought a custom post type (artists), then each category, then another custom post type (story) which has a relationship with the artist. The issue is, the function ID ); ?> in ...
0
votes
1answer
29 views

Rewriting hierarchical post type

SO, I'm having an issue where I need to rewrite a hierarchical custom post type. The custom post type is called "Destinations" and it hold regions, countries, and holidays. There is already content on ...
0
votes
0answers
11 views

Previous/Next Post Link within Child Post

I am creating a custom plugin for Sensei by WooThemes that allows me to create custom shortcodes. Currently, I am working on a feature that lets me move to previous/next courses within lessons. As far ...
0
votes
0answers
15 views

Can I attach the data from one post to another?

I'm looking to create a "snippets" plugin of sorts that lets me create a library of snippets. I then want to be able to attach those snippets to a post but not within the post_content. I basically ...
-1
votes
0answers
37 views

Switch Statement with wp_get_post_terms

I would like to create a switch statement that checks the current term and displays a the appropriate image. This statement will be used in a single-products.php I currently have a custom post type ...
0
votes
2answers
20 views

Custom post type and google visibility

I have a WordPress site that uses custom post types. However, the custom post types are not being recognized by google. It's like the custom post type is a box full of our original content that google ...
0
votes
1answer
15 views

Custom pages for authors using a custom post type

I have a custom post type called mycustompost my permalink for the posts is /mycustompost/%auth%/%post_id% So that is working fine and if I go to '/mycustompost' I get archive page. What I want to be ...
0
votes
0answers
12 views

Taxonomy Slug Rewrite 404 Error

I currently have this problem I have a taxonomy that has the rewrite slug as: resource-center/case_studies1 I have a custom post type with the rewrite slug as: resource-center/case_studies I ...
0
votes
1answer
26 views

How to create default taxonomy term for a custom post type? [duplicate]

When i install a custom post type as plugin,it will create 3 default category automatically like apple,sony,nokia. How is it possible ? My custom post & taxonomy code: function brands() { ...
0
votes
1answer
17 views

Display custom post type with shortcode

I have made a custom post type for my WordPress Theme and a page where the custom post types are displayed. But does anyone know how to make a shortcode that displays posts of a custom post type?
0
votes
0answers
10 views

Need help with rewrite for an archive page under a specific category

I have two CPTs, cartoon-series and episodes. I have one taxonomy, cartoon-series which is used to link the two CPTs together (long story - other threads for a complex issue). I have rewrites that ...
0
votes
0answers
27 views

Featured image displaying above custom meta box form on front end of site

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 which I set this as the featured image. This works fine but the featured image is ...
0
votes
1answer
12 views

Can I create a taxonomy term that mirrors the name of a new custom post?

As part of a much broader problem I'm trying to tackle, I am wondering if I can automatically create a taxonomy term with the same name as a new post of a specific CPT. The idea would be as follows. ...