Home Forums Backend Issues (wp-admin) Option to get all the titles into post


Option to get all the titles into post

  • Hi

    I wish create a summary in the post pages, this one will get some specific titles chosen by user in an ACF group fields.

    So I made a group with select field (multiple choices activated), so now I wish to get all the titles from the post in the options so set by default the list of the titles in the “choices” acf params field

    There is a way to get it ?


  • I thought doing something like this

    function acf_load_titles_field_choices( $field ) {
        wp_enqueue_script('summary', get_template_directory_uri() . '/inc/js/summary.js', array(), '1.0.0', 'true' );
    add_filter('acf/load_field/id=field_6218bb3d7551a', 'acf_load_titles_field_choices');

    But of course it doesn’t work

  • Hi, thanks for the answer 🙂

    Yes that’s I tried to do

    But the problem, is my content is not an ACF field it just simple content from gutenberg

    I made a easy function in JQuery to list all the title in the page, that’s working on the console but I don’t now how to displey them in the select field from ACF

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.