Custom Post Types extend the WordPress back-end to support additional, non-Post content.
0
votes
0answers
15 views
Custom Post Type .current-menu-item not applying on Custom Post Type Archive Page
I am working with custom post types and I had trouble with the nav menu not getting the .current-menu-item on my custom post archive page menu item. In fact, when I was on that page or any of the ...
0
votes
0answers
19 views
Missing custom posts
I've created a new document custom post and it now appears all of the posts aren't being displayed.
The count is showing the correct number but i can't see all of the documents available, it only ...
0
votes
0answers
11 views
Custom Post Type and Rewrite Slug Not working for Archive page
I'm hoping someone can help me out. I asked this on Wordpress.org but figured no harm in asking here too.
I read an article about using a custom plugin to create custom post types. So I did. ...
0
votes
0answers
16 views
Post from one WordPress site to another
I have two sites running on WordPress. I have a form on one site that generates a custom post type, and I would like this custom post type to be posted to another WordPress site. How can I do this? Is ...
0
votes
1answer
27 views
Post content stays the same but permalink changes ?
This is really weird. I made a posttype ' mediagallery ' via the plugin Types fields.
I simply want to load the post content and switch the posts with a next & prev button in de sidebar.
The post ...
1
vote
1answer
16 views
Including a custom post type in the Archives widget
I have a custom post type called "videos" that I want to include in the Archives widget (stock widget in the TwentyTwelve theme). It DOES already appear on the archives page, but just not in the ...
1
vote
1answer
17 views
Create a page that will be used to create a custom post type
I have created an 'event' custom post type and now I want to create a page that will allow users to create a custom post type from the front-end. Is there a standard way of doing this? I could ...
0
votes
1answer
25 views
Ascending Order is not Working in Custom Post Type Listining
Can you please let me know why this code is not listing Custom Post Types?
<?php
$loop = new WP_Query(
array(
'post_type' => 'product',
...
-3
votes
1answer
25 views
Hook H1 Into Custom Front Page
The site i'm refering to is Safety Warehouse. It is currently running on a Genesis theme, with the front-page.php displaying a grid loop of the custom post type. I want to add an H1 (or at least a ...
0
votes
2answers
25 views
Custom Post Type Permalinks with %category%
I Create New Post Types and Taxonomies. This is the script:
add_action('init', 'my_custom_post_type_init');
function my_custom_post_type_init()
{
$labels = array(
'name' => _x('Roundabouts', ...
0
votes
0answers
14 views
Maintain custom post types and taxonomies in all themes [duplicate]
When I change the theme in dashboard, activated plugins that use custom post types, stay in the menu. But my own custom post types that I created myself disappear. Logically, It is because I create ...
0
votes
0answers
27 views
add file upload to post type
Short question but how can I include a pdf file attachment upload inside a custom post type? currently creating a new custom post type and I can't see a supports for media upload without the editor... ...
0
votes
1answer
25 views
Display CPT index page as front/home page
I'm building a website that's sole purpose is to display other websites (defined in the CPT). Think of it as a portfolio site for a company's digital assets. I have already defined the CPT and added ...
0
votes
1answer
21 views
Control content before and after custom post type loop
I am trying to create a left nav menu that contains a couple of different taxonomy lists of a custom post type. For example, the left menu might look like this...
<h2>New Stuff</h2>
...
0
votes
1answer
16 views
Search that will look in custom field, post title and post content
I am looking for a way to perform a search, and while performing the search, it checks a custom field named keywords, the post title and the post content. If any of those fields have results like what ...
0
votes
1answer
16 views
Problem On Retrieving Post Meta Data on Custom Column [closed]
I am trying to add Custom post Metadata to a Custom Column. The meta-box has two text fields as Price and Company but When I publish a new post it just shows values from company in Price column and ...
1
vote
1answer
22 views
Should i delete the posts created by a plugin on uninstall?
I created a plugin which is based on a Custom Post Type.
When someone uninstalls this plugin, should i delete the posts under this post type or i should just leave them untouched?
0
votes
0answers
13 views
Problem retrieving informations and displaying desired structure with custom post type and taxonomy
I have to create a website with a part concerning houses, grouped by type.
I thought of using custom post type "house" and custom taxonomy "house_type".
function custom_post_house() {
$labels = ...
0
votes
1answer
15 views
Show custom post along with default post
I've created a custom post type named "image". Now my theme shows posts on homepage in three parameters- Fresh, Featured, Random(i'm feeling lucky).
How can i add custom posts in there.
here is the ...
0
votes
2answers
56 views
Display next 3 posts based on custom taxonomy
I am wondering if anyone could help me accomplish something like this: https://medium.com/thoughts-and-words/5ccef7b3e1fc with custom post types?
I have a custom post type called projects and ...
0
votes
1answer
23 views
filter search result with custom post type meta key
The default search returns all post types, which is what I want. But for one specific custom post type I want to limit the result to a specific meta key value (a custom date that must be greater than ...
0
votes
1answer
31 views
Post type archive page not working
I registered a custom post type using Custom Post Type UI, and created an archive page and named it archive-recipe.php, 'recipe' is my custom post type name. But its not working, instead its using the ...
0
votes
0answers
12 views
restrict_manage_post to remove filters
Using restrict_manage_post, is it possible to remove default WP-List-Table filters? Example that I tried, but failed below:
add_action( 'restrict_manage_post', 'remove_cpt_filters', 99);
function ...
0
votes
0answers
16 views
Curious, possible to make admin create/edit post page to look like taxonomy page?
This idea just came to me, where I thought it would be great to have something like this for CPTs that doesn't need much content/fields to fill out.
Basically a Post page where your able to add a ...
0
votes
0answers
21 views
Custom permalinks structure and custom post types
For all posts, regardless of of the post type I want the URL to be, /read/%post_id%/%postname% and have the custom post types be archives so you can go to /%post_type% and /%post_type%/%category%.
...
0
votes
0answers
14 views
Creating a new post every time an image is uploaded
I'm making this question because the one I found by searching seems not to work.
I have a custom post type project on my theme. When I upload an image via the media library in the wordpress backend I ...
0
votes
1answer
17 views
Navigation menus not showing because of custom post type filter
I use this filter to show content from all custom post types in tags archive page
function tagFilter($query) {
$post_type = $_GET['type'];
if (is_tag()){
if (!$post_type) {
...
0
votes
1answer
39 views
Rewrite custom post type url's adding meta box values
I've got these custom post types (CPT) and meta boxes:
Movies (CPT)
Genre (Meta box)
Genres (CPT)
If one movie is called Die hard then I want the permalink to be:
/genres/action/die-hard
This ...
1
vote
1answer
50 views
Plugin fatal error
I'm trying to activate a plugin I made on a network site. I'm getting an error:
Plugin could not be activated because it triggered a fatal error.
I have the debug mode on and it outputs all errors ...
-1
votes
0answers
31 views
Custom permalink to custom taxonomy post
my question is simple. normally post permalinks are [the_permalink, or any page link]. here i have to set different permalinks as their post category. example: post categories[food,drinks,books] here ...
1
vote
1answer
49 views
Adding paged query to custom URL rewrite
I have set up the following to create 'pretty' post type and category permalinks:
function kdev_add_category_rules() {
$post_types = array(
'kdev_photos',
'kdev_videos',
...
0
votes
0answers
9 views
List custom post type as children of page in wp_list_pages
I've got a WP site, with a custom post type set for team members (called 'people').
In the site page hierarchy, I have:
About
-> Team
Is there a way so that all entries for the team members, are ...
0
votes
0answers
5 views
Need Metabox show the values [duplicate]
I can show the metabox of my code but no works for save and get values into the field i save until
<?php
function reaction_buttons_meta2()
{
global $post;
echo $_POST['reaction_buttons_off2'];
...
0
votes
1answer
24 views
Looping taxonomy in taxonomy?
So I have a CPT of references (like a dictionary kind of format for music).
In it there are two taxonomies: medium_reference and reference_letter.
The reference_letter lists letters A-Z, while ...
0
votes
1answer
39 views
How to get my Custom Post Type to display in Recent Posts using “pre_get_posts”
I created a Custom Post Type (call it "my-post-type").
I created an archive-my-post-type.php page for displaying all the Custom Post Types.
Looking at the "Recent Posts" section of the Sidebar, I ...
0
votes
1answer
24 views
Take stored email addresses from custom post type & turn into one string
I have a custom post type, which has email and names stored. I would like to take these email addresses and concatenate (join them) together into a single string. This string will be stored in a ...
3
votes
2answers
68 views
Creating a Custom Post Type as a Plugin? Why?
I've been experimenting with creating a Custom Post Type as a plugin (because I've seen this recommended in various places).
But I have a question not about the how, but rather the why of building ...
0
votes
1answer
26 views
Template with Custom Post Type (Custom Tables) does not work
I'm using a Custom Post Type (CPT) my-project stored in a custom table MY_PROJECT.
Here is the CPT registering code:
$labels = array(
'name' => __( 'Projects ' ),
...
0
votes
1answer
26 views
Trying to add script to specific admin page is not working
What I am trying to achieve is to load a .js file on an edit.php page, however the code is not working specifically for this page. I've applied the same code type of code to other CPT pages, but for ...
-1
votes
0answers
46 views
advanced wordpress search with drop down menus
I am trying to build a search page on a wordpress site that I am building which will basically filter a search in custom posts types using 2 parameters.
in my case:
I have a custom post type called: ...
0
votes
1answer
30 views
Custom Post Types (Changing post style based on category)
thanks for your attention.
I have a custom post type I've built called "Portfolio Items". These posts layout a nice 6 column grid and are contained within 4 different categories.
I've created 4 ...
0
votes
1answer
26 views
Pagination problem in custom post type used as front page
I am working on a theme with custom post type.
the issue currently is that i am saving the layout files in a folder called templates.. and in front-page.php i am using an options check to see which ...
0
votes
1answer
47 views
post in a lightbox?
Ive installed "lightbox plus colorbox" plugin and im trying to call the latest post from the CPT notices. the notices have post expiration so essentially im looking to display the latest alert on the ...
0
votes
1answer
32 views
List the categories under custom taxonomy
I have a problem here, I registered a custom post type and I named it 'recipe'
then I created a custom taxonomy under the post type, I named it 'recipe category'. Now I want to display the of ...
1
vote
0answers
16 views
Admin Area Custom Type Search By Meta Fields Without Title & Content
I have a custom post type that uses several meta fields. In the admin area I would like to be able to search by those meta fields. I have implemented this currently in my functions.php with this code:
...
0
votes
1answer
45 views
Custom post type archive and single.php files not working
Hi I've created a custom post type called shows.
here is the code for it.
<?php
add_action('init', 'show_register');
function show_register() {
//arguments to create the post type.
...
0
votes
4answers
22 views
Shortcode is displaying the wrong post_title
I have got a shortcode that displays a custom post type, via a foreach. The shortcode has been used in the standard post type. I have used the_title(); in the shortcode. the_title(); outputs the ...
-6
votes
0answers
39 views
How do I add features to the Meme Plugin? [closed]
I have installed the Meme Plugin on my WordPress web site.
At the end of the meme creation process there is a Create & Share option allowing users to share access to their Facebook accounts.
How ...
1
vote
2answers
50 views
wp_insert_post sometimes fails after API call
I have built a plugin that fires an Ajax call to connect to a third-party API. That API returns some Json, which I then save as a custom post with wp_insert_post.
Now, usually, this works. But, now ...
0
votes
1answer
45 views
WP_Query of a custom post type isn't working
I am trying to WP_Query a custom post type. I would like to display the post_title s in a list. Here is my code, it doesn't seem to work:
<?php
add_action( 'init', 'custom_faq_type_mp' );
function ...

