Jump to content


Photo
- - - - -

Split button shortcode displays HTML code instead of the dropdown items


Best Answer Simon_P , 18 February 2013 - 07:39 PM

http://screencast.com/t/85xNW7u49

 

My code: http://screencast.com/t/NFwQeagl94N

 

I can only think you pasted the code into the visual editor and not the text editor, so wordpress thinks you want html displayed on the frontend rather than rendering html.

Go to the full post


  • Please log in to reply
8 replies to this topic

#1 CliffordP

CliffordP

    Advocate

  • Members


  • 473 posts
  • LocationOklahoma
  • Country: Country Flag

Posted 17 February 2013 - 03:18 PM

Visual Editor:

Please Login or Register to see this Hidden Content

Front-end view:

Please Login or Register to see this Hidden Content

 

1) Why is it displaying HTML code instead of the drop downs?

2) Why does it not output inline and instead starts on a new line?

 

Thank you.



#2 Simon_P

Simon_P

    Messer

  • Administrators



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

Posted 17 February 2013 - 03:28 PM

Absolutely impossible to tell from a screenshot what you have in your editor. Please paste the full code to a paste service so we can have a look at it.



#3 CliffordP

CliffordP

    Advocate

  • Members


  • 473 posts
  • LocationOklahoma
  • Country: Country Flag

Posted 17 February 2013 - 04:31 PM

It was absolutely impossible to read this from the screenshot???

 

Please Login or Register to see this Hidden Content



#4 Danny

Danny

    Is Awesome!

  • Moderators
  • 16923 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 18 February 2013 - 08:23 AM

Hi,

 

The reason it is displaying HTML, is due to your HTML being incorrect. You're using HTML inside the href="" attribute, which isn't valid HTML.



#5 CliffordP

CliffordP

    Advocate

  • Members


  • 473 posts
  • LocationOklahoma
  • Country: Country Flag

Posted 18 February 2013 - 06:52 PM

Danny,

I guess I had a typo in my reply. Please see the screenshot in the original message and tell me if you still think there's an HTML syntax error. Thanks.



#6 Simon_P

Simon_P

    Messer

  • Administrators



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

Posted 18 February 2013 - 07:39 PM   Best Answer

Please Login or Register to see this Hidden Content

 

My code: 

Please Login or Register to see this Hidden Content

 

I can only think you pasted the code into the visual editor and not the text editor, so wordpress thinks you want html displayed on the frontend rather than rendering html.



#7 CliffordP

CliffordP

    Advocate

  • Members


  • 473 posts
  • LocationOklahoma
  • Country: Country Flag

Posted 18 February 2013 - 08:52 PM

OMG. I bet you're right, Simon. Can I buy you a beer or something to make up for this

Please Login or Register to see this Hidden Content

? lol. ug.



#8 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 18 February 2013 - 11:28 PM

Just make sure you take your blood pressure meds! Cerebral infarcts can be fatal.  We do not support clients dying over code.  That's a matter of policy ;-)



#9 CliffordP

CliffordP

    Advocate

  • Members


  • 473 posts
  • LocationOklahoma
  • Country: Country Flag

Posted 19 February 2013 - 01:41 AM

Yeah, yikes. Sorry and thanks. Good policy to have, btw.