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

learn more… | top users | synonyms (1)

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
13 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
13 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 ...
1
vote
0answers
15 views

Custom filter function not working with Custom post type

I have custom post type "soto_property". I have made a custom filter to filter post listing according to used meta data named "operations". Here is my code- <?php add_filter( 'parse_query', ...
0
votes
0answers
6 views

Got portfolio thumbnails on homepage. need to filter them using filters

All i'm trying to do is add a working filter to existing portfolio thumbnails (Its already there without excerpt or post title - as i wanted it) I've also got the filter terms on the page, with the ...
1
vote
1answer
38 views

Removing Custom Permalink Structure for Custom Post Type

I'm using a custom permalink structure for posts, which is domain.com/blog/%postname%/. However, I have a custom post type called 'events', and I don't want to use the default custom permalink ...
0
votes
0answers
17 views

register portfolio tags taxonomy

I need to add a tags system in the portfolio. I found similar requests but I found some conflict in adapting solutions to my theme. This is my code: // titles $labels = array( 'name' ...
1
vote
1answer
20 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
18 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 ...
0
votes
0answers
16 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
58 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
26 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
13 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
57 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
24 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
23 views

Why would this IF statement not work? [closed]

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
21 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 ...
1
vote
0answers
27 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
32 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
18 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
17 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
2answers
33 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
24 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
17 views

Custom post category page not working [on hold]

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
11 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
30 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
53 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
27 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
23 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' => ...
0
votes
1answer
30 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
10 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
29 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
25 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
12 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
23 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
19 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
27 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
30 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
10 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
1answer
11 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
48 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
21 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
1answer
26 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
38 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
15 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
17 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 ...