Warning: preg_replace(): Unknown modifier ‘0’ in
-
Hi, firstly thanks for providing a great free plugin.
I was using the following shortcode in a PHP template to display all images tagged with a custom taxonomy, named ngg_tag.
echo do_shortcode( ‘[mla_gallery ngg_tag=”‘. get_the_title() .'” orderby=”date DESC, menu_order DESC” size=”thumbnail” columns=”0″ mla_float=”left” mla_itemwidth=”100px” mla_margin=”0px” link=”full” mla_link_class=”venobox”]’ );
I was using the post title to get the correct tag. It worked fine on most pages, but in some cases where special characters are used, I got several of the following errors:
Warning: preg_replace(): Unknown modifier ‘0’ in /homepages/11/d579135750/htdocs/awakeningfighters/wp-content/plugins/media-library-assistant/includes/class-mla-shortcode-support.php on line 1361
To avoid the special characters, I tried getting the tag name based on the post slug, so I changed the shortcode to the following:
echo do_shortcode( ‘[mla_gallery ngg_tag=”‘. $post_slug .'” orderby=”date DESC, menu_order DESC” size=”thumbnail” columns=”0″ mla_float=”left” mla_itemwidth=”100px” mla_margin=”0px” link=”full” mla_link_class=”venobox”]’ );
However, I am still seeing the same error messages on those pages, even though there are no special characters in the post slug. I tried removing all instances of special characters in the tag value also, but I still see the error messages.
Any ideas why this is happening?
The page I need help with: [log in to see the link]
- The topic ‘Warning: preg_replace(): Unknown modifier ‘0’ in’ is closed to new replies.