0
votes
1answer
28 views

Where is the sticky post option?

So I finally need to include sticky posts in a theme but it looks like the feature is gone. When I create a new post, and click "visiblity", the sticky option is missing. I checked a couple other ...
0
votes
3answers
17 views

Add admin script to several post types

I have found several tutorials how to add script to certain post type.like add_action( 'admin_print_scripts-post-new.php', 'banner_admin_script', 11 ); add_action( 'admin_print_scripts-post.php', ...
0
votes
1answer
100 views

Passing postid of Testimonial Custom Post in Shortcode Parameter

I am trying to create Testimonial custom post and display using shortcode function create_post_type() { register_post_type( 'testimonials',//new post type array( ...
0
votes
2answers
388 views

How to add multiple images to a custom post type single post?

I have created a custom post type and I need to add multiple images to every single post, so I can create a loop and use them in a slider. So far my search on Google etc. has turned up nothing. ...
1
vote
2answers
208 views

Generate Shortcodes by Taxonomy

Check this code: function slide_group() { register_taxonomy('Group', 'slides', array( 'hierarchical' => true /*visualizza come le categorie*/, 'label' => ...
0
votes
0answers
242 views

Function that get ACF fields value before saving

Rewrited question: There is a similar question HERE but I don't know how to combine it with my code. I have a function that relay on acf checkbox field. It is working fine but I have to update the ...
0
votes
1answer
111 views

Why is my custom form saving with 'autodraft' as title and slug?

I am currently writing a custom theme from scratch, which utilizes a number of custom post types. I am currently trying to build custom posting forms for them. I have hidden all of the normal form ...
0
votes
3answers
110 views

Having some trouble properly displaying Custom Post Types in templates

I have a child theme of Twenty Thirteen and I've setup Custom Post Types for several items. They are showing up in the Dashboard, I can create the Custom Posts and they show up in various categories ...
0
votes
1answer
30 views

Displaying information from Custom Fields in template with Types?

I am trying to understand Custom Fields and how I can use them on my posts. I have set up a Custom Field for 'author' and associated it with a template. Now, on the PHP side of things I need to ...
1
vote
1answer
95 views

Assign single template to multiple custom post types?

I have a number of custom post types that I would like to display with the same template which I have created initially as single-photography.php in my theme. Is there any way to assign this template ...
2
votes
1answer
49 views

Remove parent from custom post type

I've created a new custom post type with WordPress. However, the slug adds the post to a parent, like so: http://example.com/UNNCESSARY-PARENT/post-title However, I'd like it to create: ...
1
vote
1answer
78 views

Custom post types and category archive

I think this should be a simple thing to do but I'm struggling to make it work. What I have is the following: Custom page type called 'products'. Products contain multiple categories and ...
0
votes
0answers
23 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 ...
-3
votes
1answer
51 views

Need some hints for my own WP theme development

After taking some online tutorials I am willing to create my own custom theme for my myself. This is going to be an online Contact Lense store! So far I have learned how to generate and use Custom ...
0
votes
0answers
109 views

Meta Box Not Showing up in The Admin Page

Using WordPress 3.7.1 and PHP 5.4.12 I am trying to add a Meta box - text field to my Custom Post Type. My custom Post Type name is "news" and this is my code: <?php /* Custom Meta Boxex */ ...
0
votes
1answer
56 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
2k views

How to display value of custom fields in page

I have a custom post type called 'software', contained within are various custom fields such as subtitle, price, screenshots, download link, etc. I created a function to allow use of the tinyMCE edit ...
0
votes
0answers
176 views

How to Create Custom Post Type with Multiple Color Options?

Can you please let me know what is the best choice to create a Custom Post type like "Pen" which has Taxonomy called "Brand" now each of these post has definitely Black color which I will use as ...
0
votes
2answers
173 views

Two column layout with alphabetical ordering

I am trying to output a list of stockists in two columns from left to right, sorted alphabetically: A | B C | D E | F G | H Currently, the code below is sorting half the posts alphabeticly and ...
0
votes
1answer
124 views

Warning: Invalid argument supplied for foreach() [closed]

I have this code from home.php that will going to display a content from a page which has a custom post type of "about" <?php $post_status1 = 'publish'; $post_type1 = 'page'; ...
0
votes
2answers
81 views

Why does my URL keep returning 404 error code?

I have a custom type on my wordpress site called 'movie'. If the user type this URL : http://mysite.com/1994, I would like to display all movies published in 1994. Unfortunately, I get a consistent ...
0
votes
1answer
62 views

Create custom post order (with custom post type meta)

I would like to display my custom post type by specific order. In my custom post type, i've 2 meta : - DAY ( Select : 1,2,3,4,5,etc...) - MONTH ( Select : Janvier, Fevrier, Mars, Avril, etc...) ...
1
vote
1answer
172 views

Get term name and term parent into custom post type permalink

That i would like (for taxonomy page): Current URL : myurl.com/commerce/artisans/boucherie/ What i try to do URL :myurl.com/commerce/artisans/alimentation/boucherie/ Alimentation is the parent of ...
0
votes
1answer
68 views

Custom post type isn't working

I just built up a beta environment for testing my new Wordpress site. I didn't migrate the database; I did my own installation again and ported over my theme (it's a simple theme) to my new instance. ...
0
votes
3answers
3k views

Custom post type single-{custom}.php not working

I made a custom post type with the machine name special_media_post and wordpress is simply not seeing the single-special_media_post.php. I am at a complete lose. It keeps defaulting to the index.php ...
0
votes
1answer
145 views

Custom post type and custom taxonomy archive inaccessible

I've created some custom post type let say: post_type_1 post_type_2 Those post types are related to each other, every post_type_1 has parent of many post_type_2. Then I created a custom taxonomy ...
3
votes
1answer
54 views

Where to put archive-{post-type}.php

I have a plugin that adds a custom post type for a website I'm building. I am using the_content filters to change how a singular page looks, and it works great, allowing me to keep everything ...
3
votes
1answer
94 views

Change permalinks for posts but not for custom post types

Currently my permalink structure for posts is domain.com/post-title I'm using a static front page and a "blog" page for posts. I'd like to to change the permalink structure for posts, tags and ...
0
votes
1answer
39 views

Apply custom names for generic custom taxonomy name?

Hello, this is more of a 'is it possible' type question. Keep in mind, I am no php master by any means, but can generally figure things out : ) Say i have a wordpress site that is for displaying menu ...
0
votes
1answer
120 views

Change position of Post Formats box?

I have added post formats support to my theme. The post formats box appears on the bottom of the sidebar in the New/Edit post page. It appears below the Categories, Tags and Featured Image. Is it ...
0
votes
1answer
121 views

Make Next and Previous on single-$posttype.php use the same order as archive-$posttype.php

I have a custom post type events and am displaying these events using archive-events.php and single-events.php from the template hierarchy. I have a custom query in archive-events.php $paged = ( ...
0
votes
2answers
24 views

Custom Post Type - Main page for certain posts

I've successfully added a custom post type. register_post_type('case', array( 'labels' => array( 'name' => __('Cases'), 'singular_name' => ...
28
votes
4answers
5k views

Where to put my code: plugin or functions.php?

Is there an easy to understand scheme to decide what kind of code belongs to a plugin or the theme’s functions.php? There are many cases and many debates about that topic, mostly because there are ...
2
votes
1answer
825 views

Multiple Content Block

I'm trying to create a custom post type and would like that post type to have two content blocks. So that in the loop I can ask for content-1 and content-2 separately. I can write the code just ...
0
votes
1answer
593 views

Create a comments template for custom post types

Is it possible to create a comment template for custom post types? I want the wording for comments on a custom post type to be different for wording on a regular wordpress post. I tried ...
0
votes
1answer
140 views

custom comments form for custom post type

Hello everyone I am creating a theme dedicates to hotels display and booking in which I have created a custom post type 'Hotels' so now I want a mechanism to book the hotel rooms and a "book now" ...
1
vote
1answer
269 views

How does WP handle multiple matching rewrite rules?

Here is my url to a custom type : http://host/movie/my-slug When I go to this link, I'm redirected to http://host/movie/my-slug/?post_type=movie which results in a 404 error. I use Rewrite ...
1
vote
2answers
425 views

How to produce a sub-page-system in Wordpress

I am currently new to Wordpress development and I am developing a custom theme with a few custom post types and custom functionality. For the most part, it was pretty easy to find the information I ...
3
votes
2answers
5k views

Custom post type - order field

In a custom post type, is there a way to include the "order" field that is available for pages? Is there any built-in logic that prevents duplicate values in the "order" field? The idea is to be ...
0
votes
1answer
519 views

Custom post type permalink sends to 404.php

Hi I have created a custom post type and custom taxonomy.The custom post type page is named page-portfolio.php.I have create a loop in it in witch I am trying to link to each posts single page.For ...
1
vote
1answer
1k views

Why is get_post_format() for “Standard” returns empty

I've enabled custom posts types add_theme_support( 'post-formats', array( 'aside', 'link', 'gallery', 'status', 'quote', 'image' ) ); The default post type is set on Standard, and it works for all ...
2
votes
3answers
143 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 ...
2
votes
1answer
580 views

How to set a fall back template for a custom post type in a plugin?

My custom plugin creates a custom post type, and I want to theme my own "single-my_custom_cpt.php" file. However, I want to store it in my plugin folder, and allow that it be over-written in the ...
1
vote
1answer
88 views

Should I use custom menu, C.P.T. or theme options, or something else for this?

On many sites ( particularly CMS style business sites) there are 2, 3 4 or sometimes more boxes usually containing a title, icon and some text. These appear under the header linking to strategic parts ...
0
votes
1answer
2k views

WP_Query with custom post type ID

This code isn't echoing out anything, even though I'm 100% positive $mixtape_id is set to an integer which corresponds to one of the posts within the 'mixtapes' custom post type $query = new ...
0
votes
1answer
145 views

Category names on CPT archive pages [closed]

I purchased a theme and I'm trying to customize the "blog archive" pages for the Portfolio CPT that's included with the theme. The theme is: ...
0
votes
2answers
1k views

Custom post type posts wont show in wp_nav_menu()

I have created a custom post type and registered it using this code $labels = array( 'name' => __( 'Portfolio' ), 'singular_name' => __( 'Portfolio' ) ); $args = array( 'labels' => ...
3
votes
2answers
105 views

Rename a current used post type

Hi guys I'm working on this public theme where the previous developer had created a post type called "blog" the problem is that when you create a page with the same slug it creates a conflict. The ...
2
votes
1answer
921 views

How to Build a Movie Library in WordPress 3.x

To help me learn WordPress development, I'd like to go "beyond the blog" and build a personal movie library -- similar to IMDb but on a much smaller scale. I need help understanding how to approach ...
1
vote
1answer
450 views

Allow non-logged in users to see a future post after clicking on a list of future posts

I have been able to list out pages that are set for future in a custom template like this: ...