Forum Replies Created
-
AuthorPosts
-
JasonKeymasterHi @kabadabra!
Please clarify: What do you means you’re “not using the default __relate_post”? Are you using the
relate => array( 'scope' => 'post' )in your field? If so the owned object should have that automatically, assuming the owner is a post.In any case, you don’t need to tell get_posts what the related post type is, so long as you specify the object type correctly (i.e. post, user, or comment). As far as the relationship itself is concerned, the post type doesn’t matter; the post type only matters when you’re initially establishing the relationship.
Hope this helps! 🙂
JasonKeymasterInteresting, thanks for checking! That means that after the page loads some bit of javascript is moving the select element outside of the div.piklist-field parent. This is definitely a bug; I’ll make a ticket for it.
Thanks for reporting this!
JasonKeymasterHey @travisloc!
Out of curiosity, when you view the page source, is the div still in the wrong place? I want to rule out the possibility that it’s javascript causing the issue.
Thanks!
May 21, 2016 at 1:18 pm in reply to: Previewing post results in metadata fields being saves to current post #6540
JasonKeymasterHey @torarnv!
So, just to be clear, you’re saying that when you select a revision and go to preview it, you’re still getting the latest meta in the preview?
JasonKeymasterHey @torarnv!
What version of Piklist are you using? There was a bug with revisions that was fixed recently, but I’m honestly not sure if that’s the available version just yet.
JasonKeymasterHi @4michaelcoleman!
If you just need a simple grid, then something like Bootstrap or Foundation would be good. But if you need something more robust, that figures itself out, check out this: http://packery.metafizzy.co/
Hope this helps!
JasonKeymasterIf you check out the Piklist Demos (go to Piklist>Add Ons and activate the demos), create a new demo post type, and go to the radios, you’ll see an example of embedding a field (i.e. text field) within a radio field. Check out the code to see how it’s done. I believe this will give you a way of doing what you’re intending.
Hope this helps! 🙂
JasonKeymasterHi @bassta!
0.9.4.30 is the old version that only receives security and compatibility updates. We strongly recommend using the trunk version as it’s what’s going to ultimately become the 1.0 version. It has many changes and will even run an update script when updated. This issue should be resolved in that version.
Hope this helps! 🙂
JasonKeymasterHey @jonc!
Thanks for the heads up! I fixed this and it will be included in the next release.
JasonKeymasterYup, exactly! Thanks for posting your solution!
JasonKeymasterAh.. that makes sense. Good thought! I’ll make a feature request ticket for this.
JasonKeymasterAh, so you’re saying that to add new files you’d need to click on the button again. Clicking on the files themselves just brings up the single attachment modal?
JasonKeymasterHey @jivedig!
Just thinking through this, but since the file field supports multiple files to be selected, I assume this would only happen if a single file was selected? I often limit a file field to a single file, so it makes sense.
JasonKeymasterHey @dukecreative!
Currently this filter doesn’t have anything built into it that would allow for that sort of thing. But, that doesn’t mean you can’t use the normal WordPress functions to determine when to add an asset:
add_filter('piklist_assets', 'plugin_assets'); function plugin_assets($assets) { if ( is_admin() ) { array_push($assets['scripts'], array( 'handle' => 'plugin-scripts', 'src' => get_template_directory_uri () .'/piklist/parts/js/scripts.js', 'ver' => '1.0', 'deps' => 'jquery', 'enqueue' => true, 'in_footer' => true, 'admin' => true, 'front' => false )); } if ( is_page_template('my-plugin-template.php') ) { array_push($assets['styles'], array( 'handle' => 'plugin-styles', 'src' => get_template_directory_uri () . '/piklist/parts/css/plugin-styles.css', 'ver' => '1.2', 'enqueue' => true, 'in_footer' => true, 'admin' => true, 'media' => 'screen, projection', )); } if ( !is_admin() && is_post_type_archive('cpt') ) { array_push($assets['styles'], array( 'handle' => 'plugin-fonts', 'src' => get_template_directory_uri () . '/css/font-awesome.css', 'ver' => '1.2', 'enqueue' => true, 'in_footer' => false, 'admin' => true, 'media' => 'screen, projection', )); } return $assets; }(Note that I”m ignoring the ‘admin’ attribute in your assets as I’m just trying to provide an example of wrapping them conditionally.)
Hope this helps! 🙂
JasonKeymasterHey michaellautman!
Do you mean workflow tabs? If so use
Tab Ordercomment block, wherein the value is a number and the order is lowest to highest.Hope this helps!
~Jason
-
AuthorPosts