Hi trebor,
Something you can do when registering a page is, within the arguments passed to acf_add_options_page( [$settings] );
to set 'autoload' => true,
. This way WordPress will have loaded these options for you already on page loads.
More here: https://www.advancedcustomfields.com/resources/acf_add_options_page/
Cheers,
Hey aloeroot,
I’m guessing you could create a new page template to pull all the posts that feature the ACF fields you’re looking for. This is how I would do it:
$args = array(
'post_type' => 'post',
'meta_query' => array(
array(
'key' => 'spanish_strip', // or any other language
'value' => '"'. get_the_ID() .'"',
'compare' => 'LIKE',
)
)
);
$spanish_strips = get_posts($args);
echo '<h1>Archive for Spanish Comic Strips:</h1>';
foreach ($spanish_strips as $strip) : ?>
<!-- You do something nice here :) -->
<?php endforeach;
Note that the get_posts()
function only retrieves the last 5 entries, so either add 'numberposts' => -1
to the arguments or use a standard WP_Query.
Hope this helps!