Forum Replies Created

Viewing 15 posts - 121 through 135 (of 330 total)
  • Author
    Posts
  • in reply to: Multiple relationships question #6594
    Jason
    Keymaster

    Hi @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! 🙂

    in reply to: Field Templates piklist-field div is empty #6545
    Jason
    Keymaster

    Interesting, 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!

    in reply to: Field Templates piklist-field div is empty #6541
    Jason
    Keymaster

    Hey @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!

    Jason
    Keymaster

    Hey @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?

    in reply to: Metadata not saved for initial revision #6539
    Jason
    Keymaster

    Hey @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.

    in reply to: Isotope Masonry (Pinterest) Layouts #6538
    Jason
    Keymaster

    Hi @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!

    in reply to: inline html #6531
    Jason
    Keymaster

    If 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! 🙂

    in reply to: Piklist adds CSS to frontend theme #6491
    Jason
    Keymaster

    Hi @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! 🙂

    in reply to: get_currentuserinfo is deprecated since version 4.5 #6482
    Jason
    Keymaster

    Hey @jonc!

    Thanks for the heads up! I fixed this and it will be included in the next release.

    in reply to: Metabox/Post Type Only Specific Assets #6481
    Jason
    Keymaster

    Yup, exactly! Thanks for posting your solution!

    Jason
    Keymaster

    Ah.. that makes sense. Good thought! I’ll make a feature request ticket for this.

    Jason
    Keymaster

    Ah, 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?

    Jason
    Keymaster

    Hey @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.

    in reply to: Metabox/Post Type Only Specific Assets #6453
    Jason
    Keymaster

    Hey @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! 🙂

    in reply to: Order of Help Tabs #6432
    Jason
    Keymaster

    Hey michaellautman!

    Do you mean workflow tabs? If so use Tab Order comment block, wherein the value is a number and the order is lowest to highest.

    Hope this helps!

    ~Jason

Viewing 15 posts - 121 through 135 (of 330 total)