Support » Plugin: Display Posts Shortcode » Change Wrapper Class via Shortcode

  • Resolved 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.

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


    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:

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


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