Author Topic: Easy Review Builder - Code Formatting  (Read 3652 times)

rakoom2002

  • Tadpole
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Easy Review Builder - Code Formatting
« on: July 23, 2011, 11:27:26 PM »
I tried formatting the shortcode as follows:

[easyreview title="An (optional) title goes here"
cat1title="Category"
cat1detail="Create up to 8 rating categories, more than enough to accomplish most review formats."
cat1rating="3.5"
]

Its a lot more clean this way and easier to view, but it didnt work.  I got an error.  Is there anyway to make if work this way?

doug@dyerware.com

  • Administrator
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: +15/-0
    • View Profile
    • Email
Re: Easy Review Builder - Code Formatting
« Reply #1 on: July 24, 2011, 12:52:03 AM »
yeah, welcome to wordpress shortcodes :(

I wrote the syntax error generator because users with even a modicum of sense would do just what you did, but newlines inserted between the "[" and "]" break the wordpress parser and the plugin will not get your passed in parameters. 

It is frustrating I understand.  Some of this is helped by the rich admin panel where you can set a lot of the defaults globally and just specify the review content.

-d