Please or Register to create posts and topics.

Bug in short code Latest forum posts

[forum post="POSTID"], [forum topic="TOPICID"], [forum forum="FORUMID"], [forum category="CATEGORYID"] or [forum category="CATEGORYID1,CATEGORYID2"].

 

This short code displays the board in full
I want a shortcode to display the latest posts posted

Uploaded files:
  • 2017-08-20-08_29_56-انجمن-پرنده-فناوری.jpg
add_shortcode( 'widget', 'my_widget_shortcode' );
  function my_widget_shortcode( $atts ) {
  // Configure defaults and extract the attributes into variables
  extract( shortcode_atts(
    array(
      'type'  => '',
      'title' => '',
    ),
    $atts
  ));
  $args = array(
    'before_widget' => '<div class="box widget">',
    'after_widget'  => '</div>',
    'before_title'  => '<div class="widget-title">',
    'after_title'   => '</div>',
  );
  ob_start();
  the_widget( $type, $atts, $args );
  $output = ob_get_clean();
  return $output;
}
[widget type="AsgarosForumRecentPosts_Widget" title="My Title" number="5" target="8"]

 

I entered the code in functions.php I encountered this problem

Uploaded files:
  • 2017-08-20-13_51_40-ویرایش-پوسته‌ها-‹-پرنده-فناوری-—-وردپرس-فارسی.jpg

Version WP?

Quote from Yworld on August 20, 2017, 11:51 am

Version WP?

4.8.1

Quote from Yworld on August 20, 2017, 11:51 am

Version WP?

please help

There is no shortcode for showing the latest forum-topics only. You can use the “Recent forum posts/topics” instead.

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!
Quote from Asgaros on September 14, 2017, 6:08 pm

There is no shortcode for showing the latest forum-topics only. You can use the “Recent forum posts/topics” instead.

I want a showcase for the latest threads of all forums
Like mybb or ips

The “Recent forum topics” widgets shows you a list of the latest X topics of all forums.

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!
Quote from Asgaros on September 16, 2017, 12:10 pm

The “Recent forum topics” widgets shows you a list of the latest X topics of all forums.

This widget was what I wanted 🙂

Make a short code like this
Which we can use in tabs and pages

Uploaded files:
  • 2017-09-16-15_02_00-ابزارک‌ها-‹-پرنده-فناوری-—-وردپرس-فارسی.png