Generates Container but No Posts
-
Hi Darren,
I am attempting to incorporate your plugin into my own theme, but cannot seem to get it to work right out of the box.
I’ve installed the plugin, inserted the shortcode, and it generates the container, but not any posts inside it:
<div id="ajax-load-more" class="ajax-load-more-wrap grey"><div class="alm-listing " data-repeater="default" data-post-type="post" data-post-format="" data-category="" data-taxonomy="" data-taxonomy-terms="" data-taxonomy-operator="" data-tag="" data-meta-key="" data-meta-value="" data-meta-compare="" data-author="" data-search="" data-order="" data-orderby="" data-exclude="" data-offset="0" data-posts-per-page="5" data-lang="" data-scroll="true" data-max-pages="5" data-pause="false" data-button-label="Older Posts" data-transition="slide"></div></div>I understand I may have to enqueue the script within the functions file of the theme, like so:
function hisignpost_enqueue_scripts(){ wp_enqueue_script( 'ajax-load-more', plugins_url( '/core/js/ajax-load-more.min.js', __FILE__ ), array('jquery'), '1.1', true ); } add_action( 'wp_enqueue_scripts', 'hisignpost_enqueue_scripts' );…but that doesn’t work either. If I install it on any of the Twentysomething from WordPress it works like a charm, just not on my theme. Am I missing something?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
The topic ‘Generates Container but No Posts’ is closed to new replies.