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

learn more… | top users | synonyms (1)

1
vote
1answer
14 views

Need help targeting a custom post type with conditional tags

I found some code online to create content blocks on my WordPress blog. I use a content block at the bottom of the sidebar of my page for a shopping widget. Here's the relevant code from ...
1
vote
0answers
11 views

Storing revisions of metadata for custom post type

Storing metadata for custom post types is easy, you just need to add an action for 'save_post' with your method that handles this. In which you have then something like the following for a field that ...
-1
votes
0answers
10 views

Integrate options framework in post types of wordpress [on hold]

How to integrate the options framework in wordpress post types or plugins?
0
votes
0answers
11 views

Custom post type with custom permalink

when i create new post with my custom post type 'censorsheep' i get link like /censorsheep/[title] I want replace [title] with post id, i try use this code function censorsheep_rewrite() { ...
2
votes
0answers
19 views

Create Custom Post Type Archive Page with Sub Categories Navigation Sidebar

I have 8 custom post types (which are actually for 8 different blogs and used as "blog landing pages"). Each custom post type is also a Blog Category and each has several sub categories to it. For ...
0
votes
0answers
5 views

Genesis custom post type pagination with custom taxonomy query loop

I am trying to create Genesis pagination for a page housing all posts from a particular taxonomy. I would use the many solutions given in this WordPress Stack Exchange but I can't figure out how to ...
0
votes
0answers
12 views

How can I get taxonomy terms and custom field values of a newly created post

I created a system where people can post a CPT via a frontend form. Now, a mail has to be sent out to inform about this CPT. I tried this approach, which works, but I cannot get to the custom field ...
0
votes
1answer
42 views

Adding An Author Tag To Posts Automatically

I have been researching how to automatically tag a post by author, so if "Peter Parker" authors a post, that post would automatically show up with a tag "Peter Parker." This is because I will have a ...
0
votes
1answer
16 views

Get posts associated with custom taxonomy alternate way

I have a custom post type named artwork and I'm trying to get all of the artwork that is associated to the custom taxonomy of artists on the taxonomy-artists.php page. I found an example here which ...
1
vote
1answer
22 views

Why would this IF statement not work? [on hold]

I've placed the following conditional statement in my footer.php file but it isn't working. I want it to show the footer on every page except for single.php and the services.php template: <?php if ...
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
14 views

Custom Post Type Title Using Advanced Custom Fields Repeater [on hold]

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
23 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
24 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
17 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
14 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
24 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> ...
0
votes
1answer
18 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
8 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
24 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
47 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
26 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
15 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 [closed]

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
21 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
21 views

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

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
15 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
17 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
23 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
24 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
14 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
20 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
27 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

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
35 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 ...
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 ...