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

Attach a custom post type archive to a static page

So lets say you have a static home page and your posts page is a page called "Blog" or something along those lines. Using <?php post_type_archive_title(); ?> in the header.php will then allow ...
0
votes
0answers
5 views

how to sort post in admin column by recently

i have created custom post type my problem is: in admin column, posts are sorted by ID how can change it to date. In other words, i want to sort post by recently
0
votes
1answer
30 views

Change “empty trash” button text?

I was able to find information on how to change the edit views text but so far I've come up empty with changing the text of the "empty trash" button. I'd like to change it for my task management CPT ...
0
votes
1answer
18 views

How to give all CPT a folder automatically based on their slug

This is what I have now and working: function get_custom_post_type_template($single_template) { global $post; if ($post->post_type == 'amazon') { $single_template = TEMPLATEPATH . ...
0
votes
1answer
25 views

erase post excerpt limitation [×]

i have a custom site in homepage have problem of post excerpt with max 35 word, now i want eliminate this limitation, after search in varius file the limitation and after individuate i have changed ...
0
votes
0answers
16 views

How to have working breadcrumbs with several taxonomies associated with a custom post type

I have a breadcrumb / navigation problem. I don't know if it's possible to achieve what i want or if i can do it with mysetings or not. I have a custom post type "Formation", for which i created 2 ...
1
vote
1answer
26 views

Add CPT as subpage under custom page

I have created a menu page with the following code: add_menu_page('My Page', 'My Page', 'administrator', 'admin.php?page=my_page', array($this, 'my_page')); And now I want to use custom post types ...
0
votes
0answers
14 views

Wordpress MVC plugin routing [on hold]

How write router in my MVC plugin for custom post type data (not post type). How to call my method from controller ( example cart->view)
0
votes
1answer
17 views

Custom Post type archives / categories give 404

I have a client that wants a blog, a press section, and a "More Posts" section for feel good, community service type of posts. I used the standard post type for the blog, and everything works fine. I ...
0
votes
2answers
15 views

Is there a way to override the <title> tag specified in header.php?

Firstly this is neither an SEO question nor a question about changing the title tag sitewide. If you google my question those are all the answers you see. So we have our own theme and we have ...
0
votes
1answer
17 views

Metadata for ACF Relationship fields [on hold]

I am using the ACF Relationship field to set up a many-to-many relationship between two custom post types (one can add many Outlets to a Product). The relationship works well, but I would like to add ...
0
votes
0answers
10 views

How to use one taxonomy for different needs?

I have a taxonomy called "Names" (like tags) where I store people names and for example, I have a custom post type called "Photography" where I want to tag people who appears in each photography and ...
0
votes
0answers
10 views

Custom Post Type with /%shop_name%/gallery/%gallery% permastruct?

I have created a custom user meta = shop_name in User Profile and custom post type gallery I want my permalink to be in form of /%shop_name%/gallery/%gallery%. Every user has a custom user_meta = ...
0
votes
0answers
22 views

Using pages as tags (this is as specific as I can get, please read on…) [on hold]

tl;dr: I want to give posts attributes such as tags, but I want each of those "tags" have a seperate page so I can give them a template and put in lots of information for each and every one of them. ...
0
votes
1answer
23 views

Get parent categories of custom post type

I'm trying to display all the categories that belong to the custom post type that the user is in. For example this post: http://bit.ly/1ANisxN Is a custom post type that belongs to this page ...
0
votes
2answers
18 views

Assign category a default post type

This one has been bothering me for a few days now, so I'd really appreciate any help you can give me. Problem overview: I have a plugin which automatically creates a post and assigns the category ...
0
votes
1answer
17 views

Emailing Authors When Post Is Published

I have gotten the code to do this. However the theme I am working with does not save emails the authors input on the front end into the normal wordpress email. It instead saves it in a variable. ...
0
votes
1answer
8 views

Custom Post Type URL Rewriting

I would like to add parameter to custom post type posts So I need to do my url like that. http://www.mywebsite.com/mycpt-slug/post-slug/myparameter I found this solution but here it's work with post ...
0
votes
0answers
23 views

Modify shortcode to work with custom taxonomies and slugs

I am using this code which works fine with posts but I am looking to modify it so that the user can specify in the shortcode: custom post type name taxonomy name slug of taxonomy category For some ...
-6
votes
0answers
16 views

Youtube Channels list [closed]

Want to show only youtube channels list and when click each channels it should appear in new page shows current channels videos.
3
votes
3answers
99 views

Filter for “get_post_type_archive_link()”

I tried to find filters or a hook to modify link returned by this function get_post_type_archive_link() I have gone through most of the documentation. I'm not sure it's not there or I'm not able to ...
0
votes
1answer
24 views

Sorting on Taxonomy in archive page

<?php get_header(); ?> <?php //Define the function function customize_customtaxonomy_archive_display ( $query ) { if (($query->is_main_query()) && (is_tax('employee'))) ...
-1
votes
3answers
39 views

Custom Post Type meta value is being saved in array, instead of just the string (as value)

So, this is how WordPress is saving my CPT meta: array(8) { ["product_id"]=> array(1) { [0]=> string(10) "abcdefg987" } ["end_date"]=> array(1) { [0]=> string(10) "02-02-2015" } ...
1
vote
2answers
49 views
+50

How to make custom post meta wp_editor translatable?

I have custom post type named soto_property in which I have added three wp_editor as post meta, using this code - wp_editor( htmlspecialchars_decode($valueeee1), 'propertyEditor1', ...
1
vote
1answer
37 views

Advanced or not so advanced pre_get_posts query

I would like to only show posts that have "now and future" children using pre_get_posts action hook. Does anyone have an idea of how to achieve this? function pre_get_posts($query) { ...
1
vote
1answer
23 views

What's the purpose of 'taxonomies' parameter in register_post_type()?

As mentioned in register_post_type() Codex page: taxonomies (array) (optional) An array of registered taxonomies like category or post_tag that will be used with this post type. This can be used ...
0
votes
0answers
6 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
10 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
21 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
10 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
74 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
10 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
13 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
21 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
9 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
30 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
30 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
17 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
33 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
11 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 ...