-3
votes
0answers
13 views

How do I create a post type with repeated 'sub' post types?

Case in point, I want to create a Test Plan post type, for software testing. Each of these post types should have one to many Test 'whatevers' that have a Setup, Action, Expected Result, Actual Result ...
1
vote
1answer
99 views

Advanced Custom Field - displaying only 1 post- how to get all posts displayed

I have two post types: post type = stores which has a title and custom field (by ACF) storeurl. I have another post type called books with just title and custom field bookcode (by ACF). I ...
1
vote
2answers
39 views

Way to hook into a sidebar call to replace it with a custom sidebar

I want to replace the sidebar-2 in the twentyforteen theme with a custom sidebar based on a conditional statement for CPT. So if the page is showing a certain custom post type then show my custom ...
0
votes
2answers
55 views

Plugin “Meta Box”: Implementing meta boxes in custom post type

I am a WP beginner and see the potential of the "Meta Box" plugin (http://wordpress.org/plugins/meta-box/). I have already activated the plugin. So far I managed to upload the demo.php and to display ...
0
votes
1answer
25 views

How can I create a custom shortcode that will return a custom post type by ID?

Please excuse my ignorance, this seems simple but I can't figure it out and I've been rushing to hack things together. I can't find anything online to help me out. What I have: A custom post type ...
2
votes
0answers
107 views

Custom media upload content for inserting custom post shortcode

I’m working on a plugin that creates custom post type “portfolio” along with shortcode to insert in any page or post. The shortcode is: [portfolio option1=“1” option2=“0” option3=“1” ] And it works ...
0
votes
3answers
107 views

ACF: post query, hide duplicate values

I'm querying an ACF field, and displaying all the results on the front-end like so— PHP: <ul class="category-menu-items"> <?php // args ...
1
vote
0answers
48 views

How can I register a hook for all Custom Post Types that are published?

I'm developing a plugin. I want that when every Custom Post Type is published, a hook is called (where I send an email notification to the administrator). I know I can use: ...
0
votes
1answer
42 views

get recent 12 days post then random in wordpress

I want to show recent 12 days post then totally random post showing i have done my almost done my work but my problem is i want to show only 12 post in a page then pagination will start. In my code ...
0
votes
1answer
35 views

Themes VS Plugins [duplicate]

If I am customizing a WordPress site, should I do that via a theme or a plugin? By customization I mean: Add new custom post type Add new fields to the Users Add new widgets Add custom permalinks ...
0
votes
0answers
36 views

Show Custom Post Type Results

Hopefully someone can help me here. I have a custom post type and with this post type I am able to show the title in a select option. Now what I want to happen is when that title is selected it will ...
0
votes
1answer
77 views

Use jQuery Datepicker code from plugin

Is it possible to access a plugins' functionality from a page template? I would like to use http://wordpress.org/plugins/acf-field-date-time-picker/ in a custom page with a form, so the user can ...
0
votes
2answers
39 views

What hook can I use to modify custom post data before it is displayed on the page?

I need to check if a certain value is true in the post_meta right after the wp fetches a custom post from database, If it's false I need to modify/add some data to the post and then display the ...
0
votes
0answers
37 views

Using Relevanssi outside search with cpt/custom taxonomy

I'm trying to use Relevanssi to generate related articles using this example script. It does the job but I would need to modify it and I'm not all that familiar with query_vars. All my articles are ...
0
votes
0answers
25 views

Linking a user with a specific post type they are allowed to modify and hide the rest

I've looked everything on internet but didn't found the answer to my problem. Here is my situation. I'm using, for a college website, Wordpress 3.8 and the amazing plugin Advance custom field and CPT ...
0
votes
0answers
39 views

making a glossary with wordpress

I know that there are glossary plugins in the wordpress repository. This plugins normally searches glossary terms in post content and adds a link to it. But i have not found one, that search and ...
0
votes
0answers
17 views

P2P Plugin: ¿How to show the most connected items?

I have 2 Custom Post Types on my WordPress, that works like Movies and Actors, related with the Posts 2 Posts plugin. The relation between them is many-to-many, and I want to show the actors that are ...
0
votes
0answers
22 views

custom processing for posts

Although I'm very well aware of PHP, but I'm kind of new to WordPress. So I created this WordPress site, but there's a bunch of posts that I want them to include some PHP and JavaScript and HTML ...
0
votes
1answer
642 views

How to Add Custom Taxonomy To Woocommerce Plugin

I am trying to add a Custom Taxonomy to Woocommerce by targeting the product post type in Woocommerce. I used following code and added it into functions.php I am not getting any error message but the ...
0
votes
0answers
69 views

Adding Custom Post Type to Woocommerce

Can you please let me know if there is any way to add your own Custom Post Type to Woocommerce and use that instead of using Woocommerce Product? Thank
1
vote
2answers
96 views

Custom Post Types. Are there any disadvantages/advantages in using a plugin to develop them?

There are a few plugins which can assist you in building your CPT's, and these can usually handle your taxonomies and sometimes postmeta also. Some even take it further than that. I know that as with ...
0
votes
0answers
11 views

Pagination in get post of custom post type [duplicate]

I tried to add the pagination in get_post in the following method <?php $paged = get_query_var('paged') ? get_query_var('paged') : 1; $the_posts = get_posts(array('post_type' => 'image', ...
0
votes
1answer
63 views

Add Excerpt On Quicksand Plugin

I'm using this plugin called "Quicksand" for Wordpress.. You might wanna check the link. What it does normally is it filters posts based on the category.. It shows the Featured Image Title of ...
0
votes
0answers
35 views

How to Filter Facebook Plugin to Post a Specific Only Custom Post Type

I am using WordPress Facebook plugin to post my new posts from WordPress to my Facebook Page. So far everything works perfectly and I set up an app on my Facebook to integrate with my WordPress. Now ...
0
votes
1answer
36 views

Author profile comments system

I have a custom PHP file to get all the users/authors from the DB in WP, so it's all showing correctly and working BUT, I want to make the comment to work properly, what i did now is: <?php ...
0
votes
1answer
139 views

Hide Meta Boxes for Non-Admins

I have a review based wordpress site where I have a page for each different company where there users can review them. The theme I use adds a custom post type called "review" and I have used Press ...
1
vote
1answer
112 views

add category name to permalinks on product page /category-name/product-name

I'm trying to reconfigure the permalinks used in WooCommerce such that the following format will be displayed: homesite/category/product. Right now, the permalinks only shows under a category page: ...
0
votes
1answer
32 views

Custom Post Types in plugins?

I've been wondering about this. In most plugins I see now, they look like CPTs but they don't have the 'published' link. They don't serve as post as well. They're just plugins that stays in the ...
0
votes
0answers
65 views

Add a different payment gateway

I'm running a YITH Maya theme with Woo-commerce and I came into a bit of a pickle. I found that there are some specific gateway options, but that doesn't help me. I have a existing payment gateway ...
0
votes
0answers
88 views

Why the form's get method redirects to edit.php in wordpress admin?

I have a form in wordpress plugin and i am trying to submit it using the get method. The problem is that, the form redirects to edit.php page instead my custom post type page, which is ...
0
votes
0answers
29 views

Permalink Settings for Custom Post Type

I have a plugin that creates a custom post type. I am able to control the rewite rules and have also created a plugin settings for the archive url and taxonomy urls slugs. However if a user enter ...
0
votes
1answer
222 views

how can i show a google map in custom post type

i m making a plugin in which, custom type posts are used, for the Location Custom type, how can i show a Google map for any location. The Output will be shown as
0
votes
1answer
191 views

How to use a dedicated template for the Custom Post Type from a plugin?

I'm working through this tutorial on Custom Post Types (in a plugin) wherein the author demonstrates how to force the use of a dedicated template for the Custom Post Type. The author states thus: ...
0
votes
2answers
488 views

Create a custom archive page for a custom post type in a plugin

I'm writing a plugin that creates a custom post type named "my_plugin_lesson": $args = array ( 'public' => true, 'has_archive' => true, 'rewrite' => array('slug' => 'lessons', ...
0
votes
0answers
23 views

Plugins for putting Custom Post Types into the Menu

I have been building a website that has numerous custom post types, and I have found one called WordPress Post Type Archive Links. This would allow me to add a link to the an archive of registered ...
0
votes
1answer
31 views

Custom post type 404 error on “default” or “numeric” permalinks

I wrote a plugin for WP.org that uses a custom post type with the slug "reading-list" and I cannot view mysite.com/reading-list/ when I have either the "default" or "numeric" permalinks setting in ...
0
votes
0answers
128 views

Trying to apply apply_filters to custom post type content - not working

this is kind of a strange request. I have a plugin that adds a custom post type - then the plugin has some settings where the user can select from any of the posts they created (in that custom post ...
0
votes
1answer
243 views

Custom post type archive - error in nav-menu-template.php

I created a custom post type called 'vehicle' using the CCTM plugin and copy/pasted archive.php to archive-vehicle.php but this has resulted in an error in my header: Warning: in_array() expects ...
0
votes
0answers
114 views

Repeating Posts Plugin Tweak

I am attempting to Repeat Posts (ie. publishing them multiple times) and found the plugin repeating-posts. However, I need to tweak it so that when I have it scheduled to repeat, it also repeats the ...
1
vote
1answer
557 views

How can I make a custom post type sticky?

I installed the "Sticky Custom Post Types" plugin, and I added this code to my function.php: function wpb_cpt_sticky_at_top( $posts ) { // apply it on the archives only if ( is_main_query() ...
2
votes
1answer
194 views

WooCommerce product search titles only

I had asked this earlier and solved it using the Relevanssi plugin, however that plugin is now breaking things so I can't use it anymore. How is something so freaking simple made so impossible by ...
0
votes
0answers
40 views

Portfolio plugins, display via page templates or just stick to shortcodes for display?

I think I've read one too many plugin vs theme arguments tonight. Where I'm getting lost is, yes - I can write a plugin to register a CPT and option panels and such for the portfolio... but I still ...
1
vote
1answer
52 views

Adding custom image sizes and post types to a plugin or to a theme?

I'm just getting started but want to play around in the right area practicing for a new personal site/theme. Part A: I want to add featured images (and a few new image sizes) to a blog portion of a ...
0
votes
1answer
1k views

Is It Possible To Add Custom Post Type Menu As Another Custom Post Type Sub Menu

I currently developing a wordpress plugin that is using two custom post types. What I want to know here: is it possible to add a custom post type menu as another custom post type's sub menu?
0
votes
2answers
68 views

Configure which plugin custom post types get registered

I am writing a plugin that creates custom post types, but i want users to be able to turn them on and off via a filter in the functions.php file. The issue i'm having is that custom post types ...
0
votes
1answer
157 views

check if post title in a custom post type exists in page

I just created a post type called 'Movies', I just added a couple of movie posts using the name of the movie as title of the post. Like Karate Kid as a title of one post. Now i wanted to check ...
1
vote
2answers
386 views

Prevent page slug from interfering with custom post type archive permalink?

In my plugin, I'm creating a custom post type that has an archive and uses the rewrite parameter to choose a slug: $args = array ( 'public' => true, 'has_archive' => true, 'rewrite' ...
0
votes
1answer
425 views

Filter custom post types / woocommerce products that are not directly in a category

I am using Woocommerce but I suspect the solution is WP generic. Basically when I display a category WC wants to show products that are not directly in the category but are instead inside a subcat - ...
-1
votes
1answer
515 views

Template for custom post type shows all posts instead of just one

I wrote a simple plugin to create a custom post type named "people": add_action( 'init', 'create_person' ); function create_person() { register_post_type( 'people', array( ...
0
votes
0answers
31 views

Custom Post Type does not appear in index page

I've made a custom post type with Custom Post Type UI plugin, but it doesn't not appear in my index page nor can i see the permalink page or even the preview page (I get a 404). I am using the most ...