- This topic has 3 replies, 2 voices, and was last updated 6 years, 5 months ago by
Steve.
-
AuthorPosts
-
-
August 29, 2015 at 10:36 am #4273
davud37niMemberI have created a blank plugin following the example for some reason though title is not display i have wpml installed though could this be an issue. Also for a customer I need to add postcode search for which I am wanting to included a map so they can store lat and long information in the post type is that possible with piklist. And then how do we add say a search box to search a custom posttype created with piklist.
This is so cool by the way when i first started with wordpress was nothing like this does look good.
I just activate the piklist plugin and the demos to be save and still no title meta box ?
http://awesomescreenshot.com/0df56z4g96
Also another quesiton is how can i create multlpe forms on one menu option like say for dj i want djs then venus then events but want that under one menu option`<?php
/*
Plugin Name: MR DJ DashBoard To Allow the registration of djs as a custom post type
Plugin URI: http://URI_Of_Page_Describing_Plugin_and_Updates
Description: A brief description of the Plugin.
Version: 1.0
Author: David Buckley
Author URI: http://URI_Of_The_Plugin_Author
Plugin Type: Piklist
License: A “Slug” license name e.g. GPL2
*/?>
<?phpadd_filter(‘piklist_post_types’, ‘demo_post_type’);
function demo_post_type($post_types)
{
$post_types[‘mrdj’] = array(
‘labels’ => piklist(‘post_type_labels’, ‘mrdj’)
,’title’ => __(‘Enter a new Demo Title’)
,’public’ => true
,’rewrite’ => array(
‘slug’ => ‘mrdj’
)
,’supports’ => array(
‘author’
,’revisions’
)
,’hide_meta_box’ => array(
‘slug’
,’author’
,’revisions’
,’comments’
,’commentstatus’
)
);
return $post_types;
}?>
-
August 29, 2015 at 12:30 pm #4274
SteveKeymaster@davud37ni– Welcome to the Piklist community!
Since Piklist does everything the WordPress way you can use WordPress parameters and rules.
You need to define TITLE within SUPPORTS. Check out the SUPPORTS parameter:
https://codex.wordpress.org/Function_Reference/register_post_type -
August 29, 2015 at 12:49 pm #4275
davud37niMemberThank you i understnad that now but how do i turn the likes of add multple labels to one plugin like way we would do here I also hered in the nyc video that their was like a map option in the fields is their a way to get lat and long form them.
https://codex.wordpress.org/Function_Reference/register_post_type
-
August 29, 2015 at 4:00 pm #4278
SteveKeymasterGlad that worked for you.
There is no map option or plugin. I believe we said we “might” build it in the future.
-
-
AuthorPosts
- You must be logged in to reply to this topic.