• Hi

    Thanks for this great plugin. Can you explain how we can add unselect button into ccc_my_favorite_list_custom_template ?

    BTW how can we make ACF get_field() function available into ccc_my_favorite_list_custom_template ?

    Cheers
    Greg

Viewing 1 replies (of 1 total)
  • Plugin Author Takashi Matsuyama

    (@takashimatsuyama)

    Hi @artefactdesign

    Thank you for your rating and your question.

    shortcode:[ccc_my_favorite_list_custom_template]

    unselect button

    The following is the code for the unselect button.

    <div data-ccc_favorite-delete_all=true><a href="#" class="ccc-favorite-post-delete-button">All Delete</a></div>

    <div class="ccc-favorite-post-toggle"><a href="#" class="ccc-favorite-post-toggle-button" data-post_id-ccc_favorite="<?php echo $the_query->post->ID; ?>"></a></div>

    ACF get_field() function

    Sorry. I’ve never used ACF get_field(), so I don’t know about compatibility, but I think you can use it by putting the post ID in get_field().

    get_field( 'your_field_name', $the_query->post->ID );

    Please see the related topic for usage. (Around the 3rd to last thread)

    Thanks

Viewing 1 replies (of 1 total)
  • The topic ‘Custom template’ is closed to new replies.