• Resolved mac2net

    (@mac2net)


    Hi

    I really like the plugin.
    One of the themes I want to use has a metabox.
    I am activating this theme with the full URL setting.
    I can easily port the metabox to CMB2.
    I can also write a query to display the metabox if a post permalink matches a setting, but I need help making the query to your setting.

    Basically the metabox displays if a post’s permalink matches a permalink/theme setting stored by your plugin.

    I figured the answer is somewhere in select-theme.php

    if it’s too difficult I will just display the metabox on all post.php pages or I will make a special CPT.

    Thanks
    Mike

    https://wordpress.org/plugins/jonradio-multiple-themes/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author David Gewirtz

    (@dgewirtz)

    I’m a huge fan of using custom post types. They open up a ton of possibilities while remaining completely WordPress-savvy. I use Pods (which is a bit complex and often overkill or code my own), but there are some other great plugins that add CPTs if you don’t want to code them.

    –David

    Custom Post Type UI and CMB2 plugins are great and developer-friendly solutions as well.

    Thread Starter mac2net

    (@mac2net)

    Thread Starter mac2net

    (@mac2net)

    Sorry, why did you resolve this?

    Plugin Author David Gewirtz

    (@dgewirtz)

    I resolve posts when there is no further outstanding support work that needs to be done. The recommendations of Pods, Custom Post Type UI, and CMB2 should get you where you need to go.

    Thread Starter mac2net

    (@mac2net)

    Sorry, maybe I wasn’t clear:

    1. CMB2 – no problem
    2. CPTs – no problem

    Now I just need to figure out to query the plugin for a match in the settings in order to display the metabox. Do you know this?

    Thanks
    Mike

    Plugin Author David Gewirtz

    (@dgewirtz)

    Ooh, not sure if you can do that… unless you somehow expose something in the URL.

    –David

    Thread Starter mac2net

    (@mac2net)

    I think I figured it out.👍

    Plugin Author David Gewirtz

    (@dgewirtz)

    Coolness!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Display metabox on post.php if it matches URL/theme setting’ is closed to new replies.