Set Settings Page Custom Field data and be able to choose it from a CPT page

Support MB Settings Page Set Settings Page Custom Field data and be able to choose it from a CPT page

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #45449
    SoloAntSoloAnt
    Participant

    Hi there,

    Two questions in this attachment here:
    https://www.dropbox.com/scl/fi/c262crqr398gavpx1qnpx/CleanShot-2024-05-16-at-12.01.29-2x.png?rlkey=yna2wgtzfp5l9qejz1ctr3ma2&dl=0

    For question 1 I have a feeling this thread touches on an answer but I'm still unclear if this is what I'm trying to do. Can what I want to do be set with Meta Box AIO

    For question 2 it seems like it should be a fairly straightforward answer but I'm not finding a way to get this to work.

    Thank you,

    #45450
    SoloAntSoloAnt
    Participant

    For anyone seeing this, I got question 2 figured out.

    I had to put in the 'mb_' followed by the Meta Box Settings page ID, followed by the Custom Field Group ID, followed by the Custom Field ID.

    In my case
    {mb_sweeps-settings_dates_start_date:m/d/Y}

    And the ':' followed by the date format I wanted to display on the front end.

    Hope others might find this helpful if you come across a similar need.👍

    #45457
    PeterPeter
    Moderator

    Hello,

    For the first question, I think you don't need to setup a complicated field. Just create a select field with 4 choices. In the template, you can create a if statement to output the setting page field value based on the post field value. Like this:

    if ( post_field_value == something ) {
        echo settings_page_field_value;
    }
    #45481
    SoloAntSoloAnt
    Participant

    Hi @peter can this be set up with Meta Box AIO views? Or does it need to be set up with a template in another way? If another way can you point me in the right direction, please?

    Thank you

    #45484
    PeterPeter
    Moderator

    Hello,

    No, it isn't possible to setup the code with the builder. You have to add the code in a template file. If you cannot complete the task, we offer a customization service with an extra fee. Please contact us here for more details https://metabox.io/contact/

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.