1. ZukoDalton
  2. ADVANCED GUTENBERG
  3. Wednesday, 13 March 2019
  4.  Subscribe via email
Hi guys, first thank you for these plugin.

I was wondering if there's a way to call an Advanced gutenberg block directly into some php theme template.

i'd like to call the "Recent posts" block into my front-page.php, displaying as a slider.
I thought i could do something like this (using the function from advanced-gutenberg/assets/blocks/recent-posts/block.php), but it is not working.


<?php
$recent_posts = wp_get_recent_posts(
array(
'numberposts' => 8,
'post_status' => 'publish',
'order' => 'desc',
'orderby' => 'date',
'category' => 'une',
'postView'=> 'slider-view',
)
);
?>


Does anyone can help me to call that function into my php file?

Thank you all.
Responses (1)
Accepted Answer Pending Moderation
Hi,

Thanks for contacting us here about this extension.
Does anyone can help me to call that function into my php file?

Sorry, it's impossible with our Advanced Gutenberg.

Hope it helps!
Cheers,
  1. more than a month ago
  2. ADVANCED GUTENBERG
  3. # 1
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!