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

    (@billerickson)

    Thread Starter bvinson

    (@bvinson)

    Thanks, I’ll try this.

    What shortcode adjustments do I need to make so the listings ‘know’ they should be in 3 (or whatever) columns?

    And please where to put those codes (the php and the css). Thank you.

    Plugin Author Bill Erickson

    (@billerickson)

    That code I linked to will make it in 3 columns. If you want to change it (for instance, to 4 columns) you’d change ‘one-third’ to ‘one-fourth’ and the ‘3’ on line 14 to a ‘4’.

    The php goes in your theme’s functions.php and the css goes in your theme’s style.css. Each code snippet says in which file it belongs in the bottom right corner.

    Thread Starter bvinson

    (@bvinson)

    Thanks!

    So what you’re saying is every time I use the short code it will be in “X” columns that I set it at in the function.php?

    I pick the image size and how much text I want to show, but the ‘default’ layout will be in “x” columns- just restating a diff way…

    Plugin Author Bill Erickson

    (@billerickson)

    If you use the code listed above, then yes, all uses of that shortcode will display it in the same number of columns. If you’d like to control it on a per-use basis, add a new parameter to the shortcode (ex: [display-posts columns=”2″] ) and modify the PHP to check for that first.

    Bill, how would one modify the php in order to control it on a per use basis?

    What would you suggest if I wanted to show the categories being shown. I really have many categories for each item but only want specific ones to show up. I think that will be on my end with conditionals, but just not sure how to get the short code to know what to spit out.

    I am using the solution above on this site.

    Does anyone know how can I move the permalink above the thumbnail, and excerpt below the thumbnail?

    Thanks

    I’d like to know how to use this code on a per-use basis, as well.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Listing layout question’ is closed to new replies.