- This topic has 1 reply, 2 voices, and was last updated 2 weeks, 6 days ago by .
I’m using a select_advanced to choose a content in a list (to create a link in my template).
[ 'name' => 'Link', 'id' => "cta_link", 'type' => 'post', 'post_type' => ['page'], 'field_type' => 'select_advanced', 'query_args' => [ 'post_status' => 'publish', 'posts_per_page' => -1, ], ]
Is it possible to be able to either select a content in the list, or enter an anchor as “#anchor”, to create a “local link”.
The purpose is to use this link on a button, and this button can either go to another page, or go to an anchor in the current page.
Thanks for your help.
- You must be logged in to reply to this topic.