1
vote
How can I add a shortcode to query Custom Post Type with ACF in Wordpress?
I ultimately figured out getting a shortcode to work by reworking the code to the following:
add_shortcode( 'gr_shortcode', 'gr_shortcode' );
function gr_shortcode() {
$buffer = '<h3>...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
shortcode × 2694php × 358
plugins × 314
functions × 290
plugin-development × 173
custom-post-types × 143
filters × 94
customization × 89
gallery × 89
posts × 87
custom-field × 81
wp-query × 78
theme-development × 61
loop × 61
woocommerce-offtopic × 56
ajax × 56
javascript × 52
images × 51
widgets × 50
templates × 49
categories × 47
jquery × 40
html × 40
the-content × 40
pages × 39