WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. ardent.dave
    Member
    Posted 2 months 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

    https://wordpress.org/plugins/display-posts-shortcode/

  2. Bill Erickson
    Member
    Plugin Author

    Posted 2 months 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.

Reply

You must log in to post.

About this Plugin

About this Topic