Jump to content


Photo
- - - - -

Shortcodes


  • Please log in to reply
18 replies to this topic

#1 timstringer

timstringer

    Member

  • Members
  • 14 posts

Posted 15 December 2011 - 05:32 PM

I make extensive use of the "Button Shortcodes" plugin on my website (see http://technicallysi...lting-training/ for a specific example). This worked seamlessly in PlatformPro 1.3.5, but when I upgrade to PageLines 2.0 the buttons got replaced with grey squares (I have revered to Platform Pro for now). Any suggestions on how to address this problem? Or, is this plug-in just not compatible with PageLines 2.0?

#2 gavin_launchpad

gavin_launchpad

    Advocate

  • Members

  • 508 posts
  • Country: Country Flag

Posted 06 January 2012 - 10:00 AM

I agree button shortcodes would be a great feature

#3 msaizan

msaizan

    Super Member

  • Members

  • 193 posts
  • Country: Country Flag

Posted 08 January 2012 - 07:27 AM

ditto!

#4 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 08 January 2012 - 05:33 PM

@timstringer We introduced our own button shortcode into 2.0 for use throughout the framework backend. Your plugin also uses [button]. So its assuming the word button is unique lol Anyway open the plugin file, edit line 59 to add_shortcode('my_button', 'mysitemyway_button'); Now change your shortcode syntax to: [my_button link="http://wordpress.org" target="blank" variation="hot_pink" size="large" align="right"]Content[/my_button]

#5 bestrag

bestrag

    Super Member

  • Members

  • 243 posts
  • Country: Country Flag

Posted 20 January 2012 - 09:30 PM

@pross Yeah these shortcodes are just fine. I was wondering... Why not implement PageLinesSection class with method that generates short code for its own instance. So that way we could create our own sections and nest: [wptabs type="accordion"] [wptabtitle]Pleace to display pagelines section[/wptabtitle] [wptabcontent] [MY-PAGELINES-SECTION-SHORTCODE] [/wptabcontent] [/wptabs]