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

learn more… | top users | synonyms (1)

0
votes
0answers
9 views

How to create custom page templates with default page layout framework?

I'm writing a custom theme. Most of the content will use the regular index.php, header.php and footer.php. The index.php looks like <?php get_header(); get_sidebar(); ?> <div ...
0
votes
1answer
14 views

Custom post type pagination 404

I have a custom post type named episodes_listing and a custom taxonomy named episodes_category. My goal was to have pages like domain.com/episodes/season-one. This works great, and if I have a ...
0
votes
0answers
13 views

Custom post type clean url

I'm trying to create clean url's for my custom post type, but I can't seem to figure out how to make this work. First I followed the Wordpress codex using publicly_queryable and query_var in my ...
0
votes
0answers
12 views

How to fetch custom post type data with ajax?

I want to fetch custom post type data with ajax. For example I have a custom post type eBook. with an ajax call i want to show all Catagories of ebook. When one click on a catagory like Science then ...
0
votes
0answers
11 views

How to register custom post types like ebook and taxonomies with code?

There are more than 10 plugins to create custom post types and taxonomies. But one problem to use that is if accidentally plugin deleted, all works related to that plugin will be deleted.So I want to ...
0
votes
0answers
3 views

Posts 2 Posts Plugin - When saving connection, can it also set the connected post as draft and/or add taxonomy? [on hold]

I have two posts types, Artwork and Return. What I want to be doing is when a single Artwork or multiple Artworks (from post type 'Artwork') gets attached to a single return (from Post type ...
0
votes
1answer
15 views

Reason action hook won't work with update_post_meta from frontend form? Alternative?

The code below works when I am inserting a post/using add_post_meta when submitting a form. The page refresh is flawless (see How can I fix a slow redirect after form submit from frontend (no ...
0
votes
1answer
13 views

How can I fix a slow redirect after form submit from frontend (no plugin)?

Below is the code I'm using for my short-coded form and to add the post. Here's a basic overview of the problem I'm trying to remedy: -This form is displayed on the page at /addmember/ -On this ...
0
votes
0answers
10 views

Using breadcrumb to return from single-page to list

I have tried everything, and looked everywhere for a solution for this problem.. I have a custom type "boat", which has some custom fields. I can display a list of boats on a page, and when a row is ...
-1
votes
0answers
17 views

Need help : Sync post types to taxonomies [on hold]

I want to create a taxonomy when i create a post, and create a post when i create a taxonomy, I've tried to install it and using the functions provided in the api.php but nothing worked function ...
0
votes
1answer
16 views

Next Post links not working in custom post type shortcode

I'm trying to paginate some custom posts types, and the previous link works, but not the next link. I tried several ways but I'm not able to find the correct one... if anyone could help :) This is ...
0
votes
1answer
27 views

CPT structure questions

I use to do a lot of wordpress theming, but have since moved into developing without wordpress. I'm building a site right now that I would to have a custom post_type and taxonomy structure that ...
0
votes
0answers
7 views

Using Isotope in WordPress portfolio

I'm trying to create a custom post type portfolio and use Isotope for filtering according to categories but I'm not doing something right. I've loaded scripts in my header.php, created a custom post ...
0
votes
0answers
29 views

CPT's with landing page instead of archive - Url Rewrite?

I am building a directory website which has various Custom post Types like Tours, Food, etc. The client would like to see landing Pages for each of the categories which can be edited manually (think ...
0
votes
1answer
21 views

Template for all categories of a custom post type?

Hello ladies and gents! I'm hoping you can help me with this one.. if it's each possible. I (ideally) need a general template for the categories of a custom post type. Custom post type: Listings ...
0
votes
1answer
45 views

expire wordpress user posts

I'm trying to make classified WordPress theme and I need to make users posts expire date plus show that date into the post. Users only allowed to publish their posts in post-types not as ordinary ...
0
votes
0answers
8 views

Custom Post messages in admin - for moved to bin/deleted msgs

I have used code from Set custom messages for post update/save for customising the messages of my custom post type so that they make sense to users and don't contain the word "post". However, I just ...
0
votes
2answers
57 views

Custom taxonomy page template

I'm working on my own wordpress theme for the first time. I registered a new post type with custom taxonomy, but I can't display the posts by terms. I duplicated the archive.php and renamed it to ...
0
votes
2answers
21 views

Multiple loops for custom post type to spread data across rows

How do I split the values within a custom post type loop so that the title is in the first loop which outputs in the first DIV and the content is in the second loop outputting in the second DIV? Two ...
0
votes
0answers
8 views

Different excerpt length for different custom post types [duplicate]

I have two different custom post types, say, 'News' and 'Publications'. Now I want show 30 words as excerpt in News archive page, and 20 words in Publications archive page. How can I achieve that?
0
votes
0answers
7 views

Have custom post template work across multiple themes

I made a custom post type plugin to enter times for a radio show. I entered some css into the single page template and it is coming out very differently for different themes and sometimes outright ...
0
votes
0answers
11 views

Building URLs with Custom Post Type

Here is my current dilemna. I have created two custom post types, Verticals and Products. The Products information is fed into the Verticals and there is an interior nav with anchor links that ...
1
vote
0answers
8 views

Include related custom fields from one post type in another post type's JSON feed

I have a custom post type called Offers, and in this post type is a custom field called Store, which is a relationship field type to another custom post type Stores. This has been created using the ...
0
votes
0answers
11 views

map with ajax content load

Hi i made a svg mapa to load data from a locations cpt, so when i click the location it loads the content through ajax. It all works fine, but that is in the cpt page archive page. Now i need a map ...
0
votes
1answer
33 views

Showing a meta box in a custom post type on a page

I have a problem. I'm trying to add a meta box textarea field to a custom post type (in a plugin) with custom database table. The meta box is displaying in the custom post type, saving and updating, ...
0
votes
0answers
9 views

Add parameter to custom post permalink

I have created custom posts which have permalink structure as http://example.com/custompost/pagetitle I also want to access the same post with URL like ...
0
votes
1answer
19 views

How to add custom column to Custom post page list?

Image should explain what I am trying to accomplish. I have no idea how to do this, is anyone familiar with this sort of work? Custom event date will be a custom event meta box value that is part ...
0
votes
0answers
8 views

Bulk action on custom post with wp list table

I'm a bit confused and I'm hoping somebody can help me. I am trying to do a bulk action for deleting the items in a custom post type which are shown via extended wp-list_table class. I found some ...
0
votes
0answers
15 views

How To Pass In An Array Or Object For A Post Meta

First thank you for checking out my question. So I created a custom meta box in wordpress and I can save a value from an input box into the database, but I need to store more than one variable in ...
0
votes
0answers
22 views

get_posts not filtering custom type by category

I'm trying to filter a CPT (Custom post type) by it's categories. Here's the CPT declaration: class PB_Noticias { public function __construct(){ $this->register_post_type(); ...
1
vote
2answers
40 views

Exclude a term of a taxonomy with a custom post type in a search

I've got a WooCommerce category for sold items within WooCommerce's custom post type of 'product'. What I'm trying to do is have the site search only return results from the product post type but also ...
1
vote
0answers
18 views

How to update post meta on uploaded image from a custom form?

I have a custom PHP submission form wherein if I submit the form the entry will be created as a custom post. I am able to update post meta boxes for textareas and input fields but can't get uploaded ...
0
votes
0answers
10 views

set s3 image as a featured image in wordpress post while posting the post programatically from an external source

I am pretty much new to wordpress. My requirement is that i need to make a post from an external source using ajax to wordpress site. The post data merely contain "posttitle,description,etc..." and an ...
0
votes
0answers
19 views

Default Terms in Custom Taxonomy for Custom Post Types

I am using the below code to automatically assign a custom taxonomy (my_tax_name under my_tax taxonomy) to a custom post type (my_cpt) so that when I publish a post without assigning it any taxonomy, ...
0
votes
0answers
13 views

How to get correct page info , post type/taxonomy/category/custom post type?

Ok I feel like I am mixing apples and oranges here. Yes I am fairly new to WP and the concept of pages/tax/post/custom post types etc is blurry to me. I come from joomla where we have article , ...
0
votes
0answers
16 views

How to orderby my custom post type with two custom meta keys

I am working on real state property website. I have CPT "soto_property". I also have two custom fields for this CPT named "price" and "dorm_room". I have a search form, from where visitor can filter ...
0
votes
1answer
10 views

Generate slug and meta data if meta field is empty

I am creating a current vacancies feature in a client site, and am struggling on one area. I want to have a slug generated from a reference number, rather than the post title. This, I have set up. ...
0
votes
2answers
19 views

Add a label to the editor?

I'm working on a custom post type. I have the editor enabled but the content that will go in that box is secondary and it isn't clear what should be typed there so I want to add a label for the ...
1
vote
0answers
19 views

How to change permalink to include custom post type

Is there a way to add custom post type to permalinks with a plugin or otherwise? This is what I am trying to accomplish: mysite.com/projects/food/burgerking mysite.com/projects/wine/cherryvineyard ...
0
votes
2answers
71 views

Show related posts on single page by custom taxonomy on custom post

I am trying to build a villa rentals website. To achieve that, I have created two custom post types. The one is named "villa" and is used to show the villas for rent, and the other one is named ...
0
votes
1answer
8 views

Displaying taxonomies with manage_{custom-post-type}_posts_custom_column

How to display taxonomies column for a custom post type while using manage_{custom-post-type}_posts_custom_column filter? I tried: if( 'sections' == $column ) { echo ...
1
vote
0answers
24 views

Add Custom Post Type of specific Custom Taxonomy to regularly blog loop

I want to add a CPT to be shown in the blog. I figured out that I can use the filter hook pre_get_post to get the query object and I can modify it. However just adding another post type to the loop is ...
1
vote
2answers
132 views

Rewriting 'rewrite' slug for custom post type used by plugin

quick question: I'm using a plugin that creates a custom-post-type with the rewrite slug /projects/ So myurl.com/projects/single-project I want to to rewrite `projects/ with 'rewrite' => ...
0
votes
0answers
17 views

Custom post type term - display additional posts (with different term) on term listing page

I've a custom post type (named: 'products') with taxonomy and terms (categories for products fe. Category 1 > Subcategory 1). The Category 1 > Subcategory 1 is one term - I've only added the ...
0
votes
0answers
8 views

Is there a way to establish parent/child relationship in WP menu links exclusively?

to expand on this question title: Is there a way to establish a parent/child relationship of menu links (using the WP menu) that adds the dynamic helper classes (ie. current-menu-parent, ...
0
votes
1answer
15 views

How can I lock specific posts (cpt's) from editing by anyone other than ADMINS

To be 100% clear, this has nothing to do with the front end of the site. I want to keep all users other than Admins from editing a few specific posts. The posts are a CPT that the editors/admins ...
0
votes
1answer
17 views

How do I put `tax_query` in this WP_query?

So I have a WP_Query, that displays posts from a custom post type. It only displays posts that have a date in the future, not ones that have past. I now want to include tax_query in this WP_Query. ...
0
votes
0answers
27 views

Add role privileges of the custom post type

I wonder if it is possible when adding a new role add_role() I can assign to it a privileges to add, edit, delete posts of a custom type. To be specific. I want to add a role 'volunteer coordinator' ...
0
votes
1answer
25 views

How to add a custom taxonomy to show up in a custom post type menu?

I really don't know hot to ask this question correctly. I've created a custom post type with a name badges and added custom taxonomies to it (level, skill). Now I want to add a new submenu item to ...
0
votes
1answer
33 views

Custom post type - list posts based on meta_key and display them divided by CPT taxonomy category

Shortly: I've custom post type called 'produkty' Inside this CPT I've taxonomy called 'kategorie_produktow' with terms (list of product categories, like in normal posts) - each product has ONE ...