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

learn more… | top users | synonyms (1)

0
votes
0answers
8 views

Multiple custom post query based on custom field values

Trying to get data from custom posts based on custom field keys and values. The below triggers when someone clicks on a month based item list. If Jan is clicked $id = 1, if Feb is clicked $id = 2 ...
0
votes
1answer
14 views

Value of post meta dropdown is not showing in Wordpress

I have a select dropdown in my post meta in which I am getting post ids of all post of another custom post type. see below code- <select name="property_type" id="property_type"> ...
0
votes
1answer
27 views

Adding custom post types to archive.php

I have 3 different post types in my blog. When I click on a category of a custom post, I redirect to a 404 page, because by default archive.php does not recognize custom post types. I have found this ...
0
votes
0answers
11 views

Post status is not updating from Publish to Draft or Pending in custom post type

I have a custom post type in which the post status always remains publish. Whenever I choose status draft or pending, and click the update button, it still shows post status as publish and doesn't ...
0
votes
1answer
82 views

Calling the first & last post by category in custom post type

I have custom post type for comics, called “comic” and have written a basic comic navigation. First —previous — (current) title — next — and last comic. In functions.php, this code calls for the ...
0
votes
0answers
21 views

Custom post pagination giving the same post

Custom post pagination is giving the same post all the time on my website using the Twenty Fourteen theme. Here is my custom-page-templates-twentyfourteen.php: /** Template Name: Custom Post List */ ...
0
votes
0answers
13 views

Pull posts of custom taxonomy of a custom post type

1.The theme I am using displays a drop-down menu in a metabox when editing Pages, allowing me to select and assign to it a post category from a native Post, and then saving the selection as such: ...
0
votes
1answer
12 views

Get list of CPT posts in *current* post's taxonomy term

I've seen dozens of similar but not quite the same questions - It seems easy enough to do a wp_query and get a listing of posts in a given CPT, and sort by a given taxonomy term. However, what i can't ...
0
votes
1answer
19 views

How do I include drag-and-drop in a plugin?

I want to build a WordPress plugin that will allow users to add and delete fields from a custom post type. I want them to be able to do this with drag-and-drop, just like they add widgets to a ...
0
votes
0answers
5 views

Insert post from front end, need to update it for it to show on page

I have this form and in my functions I do a wp_insert_post where I insert the form values into custom fields on my custom post type. Everything is working fine, the post is Published and all the data ...
0
votes
0answers
13 views

Need sort posts by data in custom DB tabel

There is possibility to vote on project (custom_post_type) in theme I created. It has separate db table, where every vote are written (post id, ip, category id, vote time). What would be best way to ...
0
votes
1answer
14 views

Incorrect ordering of custom post type based on time

I have a custom post type as event which accept Custom fields' values as gp_event_date as ( 2015/02/26) gp_event_time as (SIMILAR) to 08:00PM - 10:00PM format. And on the list page, it orders the ...
0
votes
0answers
17 views

Assign default category for custom post

I am trying to assign a default category to the custom type posts I am using. I found some threads related to that, but they don't seem to work. I have this code so far function ...
0
votes
2answers
22 views

Custom Taxonomy Terms in Menu lead to which page?

Hello All I was wondering if someone could help me out. I have created a custom post type along with a custom taxonomy. In this custom taxonomy I have created custom terms through the wp dashboard. I ...
0
votes
0answers
10 views

How to clone a post through frontend?

I need for my cliente to have the ability of clone/duplicate a custom post through the frontend? Are there any plugins or hooks/functions that I could use? I'm using ACF frontend forms to add the ...
0
votes
1answer
16 views

Unable to link categories to custom post type using standard function

I see a couple similar questions here, but they appear to be either directed at registration process, and involve editing core plugin - or they reference what I am already trying to do (but for me its ...
0
votes
1answer
9 views

Change amount of text displayed on homepage posts

I would like to be able to control what text appears in the boxes on this homepage better. Currently this just takes text from the beginning of the post. How can I EITHER limit the length of this ...
0
votes
0answers
18 views

Custom Post create a new table or add an additional field/column

I have a custom post type which has a latitude and longitude custom field, am I right in thinking that that to use a google search radius I need to store the latitude and longitude values in a ...
0
votes
2answers
32 views

How to make an archive page displaying posts in a date range

I'm trying to make a couple of Page Templates for different Pages that should act as an archive to display posts (a Custom Post Type actually) in a certain date range. The website it concerns is ...
0
votes
1answer
35 views

Custom query - get_the_terms not work

I want to to show my customer works in a slide This is my query to show these works. I want to obtain the term of the taxonomy "idm_real_tax" for each custom type record. $query = new ...
0
votes
0answers
21 views

Data in Metabox Text Field Not Being Saved

here i have a custom post for events and every thing is fine except for once custom field (events location) in the metabox .. Here is the code . Any help would be great . and much appreciated. ...
0
votes
0answers
14 views

How to use pretty urls with given parameters?

I am a bit in trouble finding the right solution or a plugin which handles my parameters to pretty URLs: Right now im using links like: <?= add_query_arg('post', get_the_ID(), get_permalink(83)) ...
0
votes
1answer
36 views

how to add extra meta box or textarea into custom post types

trying to create a custom homepage slider and to add "read more" link on images but i couldn't insert extra meta boxes or textareas function featured_image_slider() { $labels = array( 'name' => ...
0
votes
0answers
13 views

What's the easiest way to update one taxonomy term after searching for another connected with the same post?

What's the best or easiest way to: Write to one custom taxonomy term ("registereddonation") value when given another custom taxonomy term ("dbtoken") value which is connected with the same custom ...
0
votes
1answer
17 views

WPDB for post count on post

I figured out how to show the count of a custom post type on author.php . I am trying to display the stats on their custom post as well. The same query does not work. How can I show the amount of ...
0
votes
1answer
33 views

Different column width in 2 rows with bootstrap and custom post types-different classes needed

I'm using a custom post type on my WP website and also using bootstrap. I want to list 5 custom post type entries on my home page, and I want the first 3 to have class col-md-4 in one row and in the ...
1
vote
1answer
40 views

Custom post type taxonomy template

I've created a custom post type portfolio and a taxonomy of course. function taxonomies_portfolio() { $labels = array( 'name' => _x( 'Portfolio categories', 'taxonomy ...
0
votes
0answers
16 views

Should update a term, but new one is created instead

I have a piece of code that should update a term in a custom taxonomy, when custom post type's title or slug is updated. However, instead of updating a term, a new one is created. CPT: collection ...
0
votes
1answer
36 views

Organizing The Custom Post Type with Taxonomies / Parent Posts

I am trying to make a custom post type called 'Songs'. It will have only two fields being 'Title' & 'Audio File'. I would also be creating a tag taxonomy field called 'Genres' so that admin can ...
0
votes
0answers
29 views

rewire rule for custom taxonomy of custom post type

So I have spent almost a week trying to solve this problem, I have a custom post type called Product with a custom taxonomy called Category. What I want is be able to list all products in a category ...
0
votes
2answers
75 views

Filter by custom taxonomy slug on a custom post type

I am displaying results from a custom post type ("works") and want to optionally filter by a custom taxonomy ("genre") if that is set (i.e. if the loop is on the custom taxonomy archive template). I ...
0
votes
1answer
79 views

Correct Post Count ( All | Published | Drafts | Pending | Trash ) for Custom Post Type when restricting to view own posts

I want to restrict users in wordpress to view their own post and media items only. Following the steps given in the below link I have developed the plugin to restrict users to view the own posts and ...
-1
votes
3answers
26 views

WordPress Loop trouble with ACF [closed]

I'm working on looping through some books for a custom post type with advanced custom fields. One of the ACF's is a checkbox, and I'm wanting to only show the values with this one checked. The current ...
0
votes
0answers
28 views

Adding custom post types and add custom add_rewrite_rules

I am adding custom post types using the class created by https://github.com/jjgrainger/wp-custom-post-type-class I am then adding classes using this to add rewrites: /** * Class to init our mvc * ...
0
votes
0answers
32 views

Get previous & next title and other custom fields from the post type

I'm trying to get the rest of the custom post type info using get_next_post(), but I don't know how to grab that info. The code below works until I try to grab get_field('role'): $next_post = ...
0
votes
1answer
65 views

Getting List of child terms from custom taxonomy parent

I am attempting to create section of my website footer that has link li of terms from a parent for a custom taxonomy I created. function add_custom_taxonomies() { // Add new "producttype" taxonomy ...
1
vote
1answer
38 views

Customize Query for post

The current query to fetch the data of my post type is taking too long, almost a minute to render 46 thousand records. Is there a filter or an action to customize the SQL function, and the markup ...
-1
votes
0answers
29 views

WP MVC : Implement the plugin in wordpress post / page

I am developing a shopping cart plugin in wordpress using WP MVC. I do not know how to implement the plugin functionality to bring out in the front end of wordpress. I know that I have to create a ...
0
votes
2answers
35 views

Shared Custom post type between WP network sites

I'm developing four websites which are separate, besides the Events (custom post type). Three of the websites are WP, and I've got them in a Network. I would like Events to show up in all three Admin ...
-2
votes
1answer
19 views

Get post from custom post type that title is like custom string [closed]

I need to get one post from custom post type named ( 'player' ) that title = "Player"
0
votes
1answer
30 views

Create 3 Level Relations with ACF and Wordpress

i have a more or less huge project and i decided to use wordpress. I want to create a nutrition plan. Therefore i use custom post types for recipes and advanced custom fields vor values like kcal and ...
1
vote
1answer
104 views

How to group posts and get a mixed posts and groups view?

Let's say i need to implement the following in WordPress : I have a CPT named 'song' which are single songs from different artists. Sometimes songs may be grouped by albums, but not always. Then i ...
0
votes
1answer
49 views

How can I add a column in the wp_list_table of the admin area?

So my question is pretty much what you see in the picture. In my custom post type of "Products" how can I add an extra column like SEO Yoast did to my main table which is called WP_List_Table. I ...
0
votes
1answer
24 views

Custom Info Box at end of posts?

I'm pretty new to WordPress so there are some parts of it I have difficulty working with. I run a small scale gaming niche website which focuses on just a small group of video games, and what I'm ...
0
votes
1answer
35 views

Specify a particular page to list all custom types

In WordPress I can specify which page is used as my home page and which page will list all my posts. I have created a Custom Post Type called 'Property'. I know I can access all of the posts with the ...
0
votes
4answers
61 views

Not getting posts of custom post types

I have created custom template and trying to get custom post of type "song" , But it is displaying only header and footer in page. There is no post content coming. Even if I try to call general posts ...
0
votes
1answer
24 views

Sort search with posts_orderby

I need to sort my search results by custom post type. the problem: the order is custom. I do have 5 different post types and i got the order like so: artist artwork page post publication I'd like ...
0
votes
0answers
19 views

Would like to add a “leaderboard” (custom field) to a custom post type

I've made a custom post type called a "Workout" that has an associated "leaderboard" just some text that has the top scores for the day. I'm trying to flush out the following use case: In the ...
0
votes
1answer
37 views

Twitter Product Cards

I am trying to show twitter product cards. I have this function in my functions.php . I validated the twitter card and everything looks good except the product data. I am trying to display it for ...
0
votes
0answers
36 views

Post structure for TV Shows or Shows

I wanted to know what is the proper way to structure post types or taxonomy for TV shows. Following below is what I am trying to accomplish using post type. - Series: Name,Title,Description -- ...