christophvh
Forum Replies Created
-
oh, i didn’t realise that. Yes that did the trick! Thank you very much for the good support!
Yes the page has a post ID of 202, the individual posts that have to be loaded are from a wp_query . So those are different id’s . Not sure if that is the problem.
This is the full dump of the load-more div
<div id="ajax-load-more" class="ajax-load-more-wrap default alm-0 alm-loading" data-id="single-collaboration" data-alm-id="0" data-canonical-url="http://detekstsmederij.dev/samenwerkingen/nienke-peter/" data-slug="nienke-peter" data-post-id="202"><div class="alm-listing alm-ajax " data-acf="true" data-acf-field-type="flexible" data-acf-field-name="update_type" data-acf-post-id="202" data-repeater="template_7" data-post-type="script_updates" data-sticky-posts="" data-post-format="" data-category="" data-category-not-in="" data-tag="" data-tag-not-in="" data-taxonomy="" data-taxonomy-terms="" data-taxonomy-operator="" data-taxonomy-relation="" data-meta-key="" data-meta-value="" data-meta-compare="" data-meta-relation="" data-meta-type="" data-year="" data-month="" data-day="" data-author="" data-post-in="" data-post-not-in="" data-exclude="" data-search="" data-custom-args="" data-post-status="" data-order="DESC" data-orderby="date" data-offset="3" data-posts-per-page="5" data-lang="" data-scroll="false" data-scroll-distance="150" data-max-pages="0" data-pause-override="false" data-pause="true" data-button-label="Laad meer berichten" data-button-loading-label="Laden.." data-button-class="btn btn_custom load-more" data-destroy-after="" data-transition="slide" data-images-loaded="false"></div><div class="alm-btn-wrap"><button id="load-more" class="alm-load-more-btn more btn btn_custom load-more done">Laad meer berichten</button></div></div>- This reply was modified 8 years, 9 months ago by christophvh.
hi @dcooney ,
I had the same idea, so i tried adding
global $postto the template and did avar_dump($post->ID), This did nothing when acf was set to true. When i removed the acf tag from the shortcode, the dump showed the correct post id again.I can’t provide you with a link because it is currently on localhost