Support

Account

Home Forums Bug Reports Page Link as option is not shown in front-end for non admin

Unread

Page Link as option is not shown in front-end for non admin

  • The Page Link field will not disply in front-end for visitors (or users that is not admin).

    Here is a code sample, where I try to get the field from front-end:

    
    $button_text = get_field('profile_company_default_button_text', 'option');
    					$button_url = get_field('profile_company_default_button_url', 'option');
    					var_dump($button_text, $button_url);
    

    And here is response for admins:
    string(13) "Læs mere her" string(36) "http://fynskerhverv.local/synlighed/"

    And here is response for other users and visitors:
    string(13) "Læs mere her" NULL

    As you can see, the page url is fetched correct when admin, but not when not an admin.

Viewing 1 post (of 1 total)

The topic ‘Page Link as option is not shown in front-end for non admin’ is closed to new replies.