Hi,
Im getting this error when I try to create a number list with shortcodes. I have used the correct formatting in the post. Can you advise?
Hi,
Im getting this error when I try to create a number list with shortcodes. I have used the correct formatting in the post. Can you advise?
not much to go on. paste the shortcode and the list.
I got this too the other day.
All I did was to change the color code on a h2 inside the numbered list code. I was just messing around and don't have the post saved.
You should post the code here Cal if you still have it.
the error is probably caused by an invalid html of the list. it's reg expression that fails to find the correct pattern. and I can see now that it's not so flexible because it got to be <li></li> and not any attributes to the li tag. I will make this more flexible..
Changing the color of the h2 tag shouldn't cause this error though...
I'm trying to bold some words and to align the text but when using the shortcode below I'm getting the same error as cal510.
Can you please provide me with a fix in order to achieve these elements? Thanks!
[list type="numlist"]
<ol>
<li><h2>heading</h2> text</li>
</ol>
[/list]as I said, the li tag should not be changed. if you do that, like add a class, it produces this error. If you want to create a custom class for this, wrap it around the shortcode and not the li tag. example:
<div class="mylist">
[list type="numlist"]
<ol>
<li><h2>heading</h2> <p>text</p></li>
</ol>
[/list]
</div>
and style it like this:
.mylist p { font-size: 16px; }
It worked for bold, align center and changing text colour.
Thanks!
Sorry for the late reply in getting back to you re my error.
I have used the following format my my list and there are no html elements in the text.
[list type="numlist"]
[/list]
The error I get is:
Warning: Invalid argument supplied for foreach() in /home/user/public_html/mydomain.com/wp-content/themes/bigfeature/library/functions/shortcodes.php on line 599
I also get the same type of error when I try to use bignumlist
Can you help me out?
Sorry, the forum converted some of the code....I have used the following
[list type="numlist"]
[/list]
Nope.....even using the code button it still formats this!!
I used the numlist ocde found here: http://www.vfxdude.com/testblog/shortcodes/lists/
use backticks to add code (see below for instructions):
[list type="numlist"]
<ol>
<li><h2>heading</h2> text</li>
</ol>
[/list]
I'm not getting any error with this code though. I did some changes in 1.4.0.1 for this, it might work if you upgrade.
You must log in to post.