Custom Post Types extend the WordPress back-end to support additional, non-Post content.
1
vote
0answers
150 views
Wordpress subpages to custom post types
I have created a CPT like this:
add_action( 'init', 'create_media' );
function create_media() {
$labels = array(
'name' => _x('Media', 'post type general name'),
'singular_name' => ...
1
vote
0answers
99 views
Page as a child of a Custom Post Type
I have a custom post type called "Professions", it contains different professions and info about them. To show them I simply use a content-profession.php -file.
The thing is that I need subpages ...
1
vote
0answers
271 views
filter search custom field query
I'm looking for way to filter search results.
This is what I have so far
a custom post type of "doctors"
in each "doctor" post, there are numerous custom fields (male or female, location, ...
1
vote
0answers
128 views
Grid Filter Dropdown from Custom Post Type goes blank on Submit
I am trying to filter a grid of players based on the clubs they are in. Players and Clubs are both custom page types
Now the Dropdown renders ok on first visit - rendering several teams ok - when the ...
0
votes
0answers
3 views
Problem with $post_id object's property.
Dealing with retrieving CPT metadata I find out two methods get_post_meta() and get_post_custom() to return the value(s) of the custom fields with the specified key from the specified post.
Both ...
0
votes
0answers
40 views
How to show selected value in dropdowm menu
I have a problem, I want to show the user the selected value the user has selected before.
I have a custom post type I have created and I have also a separate plugin that's using a custom db.
What I ...
0
votes
0answers
6 views
get_next_post() not working after adding a category with ACF
I work on a wp site with various categories of products. For any single product, this was the code which would yield links to next and previous product:
<?php
get_header();
global $post;
$next = ...
0
votes
0answers
19 views
Bulk remove category from custom post type?
I know you can use bulk actions to add categories but how do you remove them in bulk? I have a custom post type that is using a category (as status) and it needs to basically be toggled in bulk and ...
0
votes
0answers
11 views
Set Featured Image from Form in Front End
I am creating a front end creator/editor for some custom post types.
I wanted to have a button that opened WordPress' "Set Featured Image" modal (as is found when creating a post from the admin ...
0
votes
0answers
31 views
Archive page for custom post type not working
I use a plugin called CPT-onomies to create Custom Post Types. I created a post type called "case", and set "Has Archive Page" to true, but when i try to view a single case, i just get 404'd. Same ...
0
votes
0answers
12 views
Populate BP Group front.php with CPT item of the same name
I'm reviving an old question here in hopes there might be some new light to shed on it.
I'm attempting to display the content of a custom post type item on the custom front page of a bp group with ...
0
votes
0answers
18 views
Custom Post Type Feed displaying all posts
I'm having some problems with an RSS feed for a custom post type. If you view this URL http://intentional.wpengine.com/feed/?post_type=30daychallenge you'll see a raw feed. Everything looks to be fine ...
0
votes
0answers
15 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
18 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
0answers
29 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
0answers
14 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
0answers
13 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
19 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
16 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
0answers
13 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
29 views
Archive Page Pagination not working
I am using the following template for a custom post type. The pagination does not work as you can see at http://www.xava.ie/testimonials
Any hints as to why it is not working for me?
<?php
...
0
votes
0answers
13 views
Custom taxonomy not working after capability change
I have a custom taxonomy, that worked fine. Until I did the following:
Added new role
Assigned a new capability for the taxonomy
Created new post type, and assigned the taxonomy to it (The cpt name ...
0
votes
0answers
33 views
Custom Post Type query not working in archive.php
I have a custom post type namely "Slider" for a banner slideshow on the website. I run a custom loop query to get the slides from the custom post type. I have put the code on every template file ...
0
votes
0answers
10 views
Update post_title and detail_url during “pods_api_post_save_pod_item” action in pods framework
I would like to generate the pod item title and slug/permalink/detail_url programmatically using some of the custom fields I set up.
With the “pods_api_post_save_pod_item” I get $pieces, that has ...
0
votes
0answers
82 views
All cats and posts from a custom taxonomy
i'm not new to wordpress templating nor a master. So i've had a problem when i wanted to make a custom list showing all categories and posts under them with a custom taxonomy and post type, like:
...
0
votes
0answers
12 views
how link multiple custom taxonomy posts to specified page
$myquery['tax_query'] = array(
'relation' => 'OR',
array(
'taxonomy' => 'brands',
'terms' => array('ALL'),
'field' => 'slug',
),
array(
'taxonomy' => 'media',
...
0
votes
0answers
23 views
Custom Post Type and Taxonomy pagination permalink
I have a custom post type of galleries with pagination for the posts thumbnails.
It worked great until I activated the permalinks in the WP admin panel.
I saw many posts on this problem but none of ...
0
votes
0answers
51 views
Creating a menu that lists your custom post types with wp_list_pages()
I'm stumped on this, it is something I've gotten to work on other sites, but I must be overlooking something here.
I'm trying to create a secondary menu for my custom post types ('staff') with ...
0
votes
0answers
39 views
Retrieve post data via WPDB class
I'm trying to figure out doing a custom query using the $wpdb Object.
I have custom type posts, event_posts, that have meta data, images, as well as event dates which are input in the post with the ...
0
votes
0answers
47 views
Query recent posts by author
I'm fairly new to wordpress but trying to get recent posts by a specific author. The following code displays only most recent bog posts. I am using a custom field to get the author ID.
EDIT by ...
0
votes
0answers
36 views
Display a custom post type list by taxonomy term
I need to show a list of custom post type classified by terms. The idea is something like this:
Service list:
<ul>
<li>
<a href="#">Webdesign (taxonomy term)</a>
...
0
votes
0answers
25 views
get_option include <br /> in my adsense
As title said I saved in wp-options -> option_value a adsense code but when I try to display to website in the code I get some
"<script type=\"text/javascript\"><!--<br ...
0
votes
0answers
26 views
Wordpress Custom post type won't save properly
Note: I first asked this question on stackoverflow but didn't get an answer.
I created a plugin with a new custom post type, it works locally as it should but on one of my websites, which happens to ...
0
votes
0answers
24 views
How to display category with post title in frontpage of the custom post type
Hi,everyone.Sorry my bad English,and I hope you can understand what I mean.
In my WordPress theme, I craeted a Custom post type named "Portfolio", Because I want show the single category with list of ...
0
votes
0answers
47 views
Get image URL from media library in input
On wp-admin/post.php?post=447&action=edit for example I have a link and an input.
The link appears as follows:
<a href="#" class="button insert-media add_media" data-editor="tj_image_url" ...
0
votes
0answers
41 views
Wordpress - ABC filter/Pagination
I would like to list out the alphabet on a custom post type archive page, and by clicking on a letter in the alphabet it would link to a url that only displays posts that begin with that particular ...
0
votes
0answers
54 views
How do I add a checkbox option to this custom post type code?
I have a custom post type set up and I want to add a checkbox option. If the box is checked, I want to use a php if/else statement to show one div or another. Can someone take a look at my code and ...
0
votes
0answers
31 views
Pagination not working on page
Edit :
Toscho said this was a duplicated question and gave me a link
Pagination not working with custom loop
I checked it out and followed the steps but this is not working for me.
Right now. when i ...
0
votes
0answers
48 views
Omitted Content After Post-Publish Insertion
I have a string that contains $thehtml but whenever I insert it manually into a custom post it appears that wordpress alters/strips down the html.... I've already tested/outputted $thehtml string in a ...
0
votes
0answers
50 views
Press this! not working
I am trying to debug a Press this function on a site {Adult Contents}
This issue is, images on the page does not add up and does not show...
javascript code for press this button is
javascript:var ...
0
votes
0answers
15 views
Create a generic post type and define its metadata via another one used for categorization
Ok, I would like to share with you an idea I had and ask you what do you think about it and possible drawbacks I'm not able to forsee.
I'm building a database for an association with many kind of ...
0
votes
0answers
19 views
Listing custom post type items from a couple of custom taxonomies
I know I have asked a similar question in the recent past (Listing all custom post types using a specific term on the said term's template page, in groups), but in this case, the template is more ...
0
votes
0answers
53 views
Export list of custom post types (filtered by taxonomy terms) to PDF
I have seen some useful plugins on the web like WP Post to PDF and PDF24 Article To PDF which let users export post contents to PDF for offline readings, but my question is how I can export a list of ...
0
votes
0answers
34 views
Capability to read user's own draft post of CPT
I've got a custom role called 'Gym' and custom post type (CPT) called 'Story'. Every Gym user can create a draft of a story and view their own story drafts.
My 'Story' CPT have got the following ...
0
votes
0answers
26 views
Custom Post Query Combined with Conditional Tags
Is it possible to combine displaying a list of custom post types on a single page depending on conditional tags?
Below is what I have so far, basically if there are 4 posts or less show the posts, if ...
0
votes
0answers
63 views
Classic Custom Post Types and WP-PageNavi
Has anyone made this work?
I am searching for a solution for 2 days now, and it won`t work.
I have...
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$updates = new WP_Query(array( ...
0
votes
0answers
26 views
Can I set a CPT title field to a dropdown with preset options if user is of a given type?
I am using the WP Property plugin so I have a Property CPT. I also have building managers who will be creating these new CPT posts.
Is it possible to set the post title field to be a dropdown field ...
0
votes
0answers
29 views
next_post_link() not working properly
I am using next_post_link() and previous_post_link() in single-custom.php to
browse through post-type "custom".
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div ...
0
votes
0answers
29 views
How to Display Custom Taxonomies in an Un-ordered HTML List
Having a Custom Taxonomy function like below, can you please let me know how I can list all of my Taxonomies in an unordered html list
enter code here
function create_conference_taxonomy() {
...



