Unyson icon indicating copy to clipboard operation
Unyson copied to clipboard

Do we have link option type

Open danyj opened this issue 11 years ago • 3 comments

Do we have something similar to this

http://prntscr.com/8v98o4 http://prntscr.com/8v9766

where we can select existing content link ? Or do you have a snippet that I could use to make an option like that.

danyj avatar Oct 25 '15 19:10 danyj

I use the example provided by @moldcraft here : https://github.com/ThemeFuse/Unyson/issues/224

I modified it a bit, but not much.

ps: don't forget to remove the post_per_page attribute here so you get ALL URLS instead of the general settings

private function get_posts($post_type)
{
    return get_posts(
        array(
            'post_type' => $post_type,
            'post_status' => 'publish'
            ));
}

cristeacosmin avatar Oct 26 '15 09:10 cristeacosmin

Hi! We havent such a option but you can do it for yourself , use a simple popup with specific options inside (http://manual.unyson.io/en/latest/options/built-in-option-types.html)

puyaalexxx avatar Oct 26 '15 11:10 puyaalexxx

@c0sm1n87 thnx bud , that will work.

danyj avatar Oct 26 '15 11:10 danyj