Sandor
El Presidente
Just Getting Started
Member Likes (0)
I am rotating content on a page and the shortcodes are adding line breaks - however if I try to use them inline - so there are no line breaks - they are not recognized...
Maybe I am missing something?
I made an example here...
[scheduled onetime="2011/07/13" time="01:00 AM" length="0:0:00:30"]
CONTENT
[/scheduled] <- Line Break Added
[scheduled onetime="2011/07/13" time="01:30 AM" length="0:0:23:30"]
CONTENT
[/scheduled] <- Line Break Added
[scheduled onetime="2011/07/14" time="01:00 AM" length="0:0:00:30"]
CONTENT
[/scheduled] <- Line Break Added
[scheduled onetime="2011/07/14" time="01:30 AM" length="0:0:23:30"]
CONTENT
[/scheduled]
-------------------
[/scheduled][scheduled onetime="2011/07/14" time="01:30 AM" length="0:0:23:30"]
Above inline example does not work (shortcode is displayed)...
Cheers!
-Sandor
Responses (6)
WPMU DEV Fanatic (joined October 2009) Likes (0)
Hi Sandor,
I'm seeing something strangely similar in a test site. I'll ask one of the developers to take a look at this.
Regarding the inline example you mentioned though, I'm not sure I understand. The shortcode example you gave on that one has the closing tag first. Was it meant to be that way?
Thanks,
David
Member (joined December 2010) Likes (0)
Hi David,
Sorry - I wasn't clear...
I was getting the extra line breaks - so I was trying to use the shortcodes on the same line...
But when I did that - the shortcode was not parsed by WordPress and was displayed instead...
In this example - the second opening shortcode tag is displayed instead of used...
[scheduled onetime="2011/07/13" time="01:00 AM" length="0:0:00:30"]
CONTENT
[/scheduled] [scheduled onetime="2011/07/13" time="01:30 AM" length="0:0:23:30"]
CONTENT
[/scheduled]
Cheers!
-Sandor
WPMU DEV Fanatic (joined October 2009) Likes (0)
Hi Sandor,
I've been trying to replicate that on a test site, using the content you posted as well, and I can't seem to replicate it. I'm wondering if maybe a version difference might account for it or not?
Could you let me know what version of WordPress and Schedule Selected Content you're using?
Also, if possible, could you provide a link to a site where the issue can be seen?
Thanks,
David
Member (joined December 2010) Likes (0)
Sure...
Scheduled Content v1.0
WordPress v3.1.3 (Sorry, in the middle of an event - will have to update later...)
OptimizePress Theme v 1.36
URL of demo for you: http://www.loveonpurposerevolution.com/wpmudev-test/
Code that is on that page is below....
[scheduled onetime="2011/07/14" time="01:00 AM" length="0:0:1:0"]
Content 1
[/scheduled][scheduled onetime="2011/07/14" time="02:00 AM" length="0:1:0:0"]
Content 2
[/scheduled]
Cheers,
-Sándor
WPMU DEV Fanatic (joined October 2009) Likes (0)
Thanks for all the additional information Sándor. I'll ask one of the developers to take a look at this as well as I can't really see any reason that would work that way.
Could you maybe try switching to Twenty Ten for a moment to see if the issue persists with that as well?
Thanks,
David
Lead Developer (joined May 2009) Likes (0)
Hmmm, it simply uses the WP shortcode handler, so if there really was a bug it would be in WP core, which I doubt as others don't report an issue.
So if it's still happening it's most likely a plugin conflict, especially one that uses it's own shortcode handler or messes with the content.
WordPress Questions?
We've got answers!
Find out more »