Display Posts Shortcode
[resolved] missing argument error after adding column classes snippet (2 posts)

  1. ardent.dave
    Posted 1 year ago #

    On the page with the shortcode we get this error, after adding the code for "Add Column Classes to Display Posts Shortcodes"

    Here is the shortcode on the page
    [display-posts columns="2" category="work" posts_per_page="6" image_size="medium" include_excerpt="true"]

    Here is the error we get
    Warning: Missing argument 4 for be_display_post_class() in /home/hsd34dg/public_html/wp-content/plugins/display-posts-shortcode/display-posts-shortcode.php on line 277


  2. Bill Erickson
    Plugin Author

    Posted 1 year ago #

    The code you used was for the development version of the plugin, not the currently public version. If you'd like to use it, you'll need to download the development version from here: https://github.com/billerickson/display-posts-shortcode

    In a few weeks I'll be releasing a new version of the plugin here on WordPress.org, and then this code will work.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Display Posts Shortcode
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic