Support » Plugins and Hacks » Display Posts Shortcode » Change Wrapper Class via Shortcode

  • Resolved Break5

    (@break5)


    great plugin!

    is it possible to change the wrapper class, not only the wrapper tag for the current shortcode?

    like div.aside oder wrapper_class=”aside”

    [display-posts post_type=”page” wrapper=”div.aside”]

    Page content

    [display-posts post_type=”page” wrapper=”div.anotherclass”]

    as you may recognize, I want to build a home layout which can be modified via the wordpress text editor instead of changing the template.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Bill Erickson

    (@billerickson)


    Using just the shortcode, no, you cannot customize the CSS classes of the wrapper. But you can create a custom output filter to do so. See some of the examples here: billerickson.net/code-tag/display-posts-shortcode

    Writing the code for you is outside the scope of the free support provided here.

    thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change Wrapper Class via Shortcode’ is closed to new replies.