Forum Replies Created
-
AuthorPosts
-
hozefasmileMemberHi Steve,
This feature will be really very helpful and make piklist much more useful if it provide an easy way to add additional column on post type list. Querying post based on various filterable field is really very important feature a client can ask for.
Doing it through wordpress is a tough task, I had did it once in the past but the column was not sortable. So if piklist can provide a shortable column for custom field used in the post type, that will be great 🙂
Hozefa Saleh
hozefasmileMemberHi Marcus,
I have removed the plugin widget files. Now there is only these widget files in my theme’s directory. I have also added the comment
/* Width: 500 */as you have mentioned in the example-form.php file, but no luck. It still not showing. But whenever I add these in plugin directory its working. Is there something the theme also need additionally to your piklist files? For example I might need to add some code in functions.php file of the theme to make it work?
Thanks
Hozefa
hozefasmileMemberHi Marcus,
Thanks for your reply. I have created two files in the directory my-theme-folder/piklist/parts/widgets/
1. example.php<?php /* Title: Example */ ?> <?php echo $before_widget; ?> <?php echo $before_title; ?> <?php echo $after_title; ?> <?php piklist::pre($settings); ?> <?php echo $after_widget; ?>2. example-form.php
<?php piklist('field', array( 'type' => 'text' ,'field' => 'post_content' ,'label' => __('Example Field') ,'description' => __('Field Description') ,'attributes' => array( 'class' => 'text' ) )); ?>I am using this same code in my custom plugin also. This same code works there but not here if I put it in theme.I am missing something that additionally needed to add to work for theme ?
Thanks
Hozefa
hozefasmileMemberHi all,
I have tried to make a new widget reading the tutorial provided in piklist documentation. But its Not showing at all in wp-admin widget.
If I copy the same files in a piklist plugin created its works as expected, but when I copy that same widget in a theme piklist folder, it not work. (my-theme-folder/piklist/parts/widgets)
Do you have any idea why its not working there? I want to include widget as part of the theme not want to use an additional plugin to handle it.
Thanks
Hozefa -
AuthorPosts