CTA Example: Featured Content
Displaying a featured CTA based on the current item within the loop
In this example:
Ajax Load More will use the Call to Actions add-on to inject a custom CTA template before the 2nd post in each query.
-
Ajax Load More Post Example
Cras justo odio, dapibus ac facilisis in, egestas eget...
-
REST API
Enable compatibility between Ajax Load More and the WordPress REST API
Learn More
-
Donec ullam corper nulla metus auctor frinel
Sociis natoque penatibus et magnis dis parturient montes, nascetur...
-
Lorem Ipsum Maec diam eget risus varius blandit
Donec ullamcorper nulla non metus auctor fringilla. Maecenas faucibus...
-
Pellentesque ornare sem lacinia quam venenatis vestibulum
Maecenas faucibus mollis interdum. Morbi leo risus, porta ac...
-
Diam eget risus varius blandit sit amet
Maecenas faucibus mollis interdum. Morbi leo risus, porta ac...
The following shortcode was used to create the CTA Example: Featured Content example.
[[ajax_load_more cta="true" cta_position="before:2" cta_theme_repeater="custom-cta.php" post_type="post" posts_per_page="5" transition="fade" seo="true" css_classes="call-to-actions" images_loaded="true" preloaded="true" preloaded_amount="4" pause="true" pause_override="true"]]
The following Repeater Template was used to create the CTA Example: Featured Content example.