• Resolved jelfs01mi

    (@jelfs01mi)


    Hi,

    When posting, I have a radio option meta box (PLUGIN: Page links to) that allows the ability to set whether the page can link to the standard link or a custom one.

    What i am trying to achieve is for postie to set this when sending the new post email.

    Everything functions as expected, but postie does not seem able to set the radio button option how i would like it.

    This is the default admin page code:

    <div id=”page-links-to” class=”postbox ” >
    <button type=”button” class=”handlediv button-link” aria-expanded=”true”><span class=”screen-reader-text”>Toggle panel: Page Links To</span><span class=”toggle-indicator” aria-hidden=”true”></span></button><h2 class=’hndle’><span>Page Links To</span></h2>
    <div class=”inside”>
    <p><input type=”hidden” id=”_cws_plt_nonce” name=”_cws_plt_nonce” value=”9a921f259c” /></p> <p>Point this content to:</p>
    <p><label><input type=”radio” id=”cws-links-to-choose-wp” name=”cws_links_to_choice” value=”wp” checked=’checked’ /> Its normal WordPress URL</label></p>
    <p><label><input type=”radio” id=”cws-links-to-choose-custom” name=”cws_links_to_choice” value=”custom” /> A custom URL</label></p>
    <div style=”webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin-left: 30px;” id=”cws-links-to-custom-section” class=”hide-if-js”>
    <p><input name=”cws_links_to” type=”text” style=”width:75%” id=”cws-links-to” value=”/tools-and-resources/did-you-know-series” /></p>
    <p><label for=”cws-links-to-new-tab”><input type=”checkbox” name=”cws_links_to_new_tab” id=”cws-links-to-new-tab” value=”_blank” > Open this link in a new tab</label></p>
    </div>

    ————–

    The ‘cws_links_to_choice’ is the box i would like checked as default but whatever i try postie does not change the value.

    Any help for input would be appreciated.
    Thanks.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Raidio Buttons + Shorcodes’ is closed to new replies.