Bug report: WordPress 4.4.2 and
-
Hello,
I’ve seen reports around these forums which say that their shortcodes recently stopped working.
In one of the threads the author advices to check if your shortcode is followed by two spaces as it will stop your shortcode from working.
Well that wasn’t my case and after a few minutes I figured it out.
If you use a “tag” modifier before a “category” modifier your shortcode won’t work and you will see the raw code on your web page.
To illustrate the error, the following code doesn’t work:
[display-posts tag="instalación" category="ayuda" posts_per_page=5]The following code, which does exactly the same thing, does work as expected:
[display-posts category="ayuda" tag="instalación" posts_per_page=5]To make things more bizarre, the following code (which has improper syntax) works correctly:
[display-posts tag="instalación" category="ayuda" posts_per_page=5 [display-posts tag="instalación" category="ayuda" posts_per_page=5]* Note that the code above is missing a ] symbol on the first line. It is intentional. If you type the code like that it will work.
I guess that this is some minor bug which should be documented or fixed. I just hope to help anyone else who is affected by it.
Cheers,
Héctor
The topic ‘Bug report: WordPress 4.4.2 and’ is closed to new replies.