WordPress.org

Ready to get started?Download WordPress

Forums

Display Posts Shortcode
[resolved] Two Functions Conflict (3 posts)

  1. osseonews
    Member
    Posted 1 year ago #

    There is a problem when you try to use the function listed here:
    http://www.billerickson.net/code/add-column-classes-to-display-posts-shortcodes/

    and the function listed here:
    http://www.billerickson.net/code/add-read-more-to-display-posts-shortcode/

    Basically because the "Read More" code hardcodes the class for the $output string, it overrides the function that adds the column classes. I've tried playing with different code, but can't seem to resolve the problem. Can you please post "Read More" code that utilizes a variable for the class, so it can be used in conjunction with the Column Classes code. Thanks.

    http://wordpress.org/extend/plugins/display-posts-shortcode/

  2. Bill Erickson
    Member
    Plugin Author

    Posted 1 year ago #

    The read more code snippet was written before classes were in the plugin.

    I've updated the snippet to include the two new parameters, $class and $content: http://www.billerickson.net/code/add-read-more-to-display-posts-shortcode/

  3. osseonews
    Member
    Posted 1 year ago #

    Thank you.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.