Support » Plugin: Recent Posts Widget With Thumbnails » Is there php code for manual insert?

  • Resolved dwell

    (@dwell)


    i’d like to add the results of the plugin work on template manually. Is it possible?
    Thanks for the plugin, I used it for years ))

Viewing 1 replies (of 1 total)
  • Plugin Author Martin Stehle

    (@hinjiriyo)

    Yes, there are 2 possibilties:

    1. in the template insert this code to let the widget be displayed:
      <?php the_widget( 'Recent_Posts_Widget_With_Thumbnails' );?>
      If desired you can use up to 2 optional parameters:
      <?php the_widget( 'Recent_Posts_Widget_With_Thumbnails', $instance, $args ); ?>
      Documentation about the_widget().
    2. or insert register an additional widget area via register_sidebar() – lets call it ‘RPWWT Widget Area’ – and insert this code in the template where to show the widget:
      <?php if ( function_exists( 'dynamic_sidebar' ) and dynamic_sidebar( 'RPWWT Widget Area' ) ); ?>
    • This reply was modified 4 years, 4 months ago by Martin Stehle. Reason: the_widget,register_sidebar
Viewing 1 replies (of 1 total)
  • The topic ‘Is there php code for manual insert?’ is closed to new replies.