The plugin wraps everything in the post-meta with it's <ul>
and treat like it's own custom fields. If the post-meta has div and span elements, the plugin wraps them too.
That makes the code invalid and the page looks ugly if it wraps all the divs which are not related to WPUF.
For example, if I have related_posts plugin and add_this plugins installed and their content will also be wrapped by your plugin. And the code looks like this:
<div class="post-content">
<p> </p>
<p> </p>
<ul class="wpuf_customs">
<li>
<li>
<label>test</label>
: test
</li>
<ul> other plugin content
</ul>
<ul> <div> <span>other plugin content</span>
<span>other plugin content</span>
</div>
</ul>
</ul>
I managed to separate the div elements from the plugin's class="wpuf_customs"
using jquery. But that causes another trouble on posts loop.
jQuery(document).ready(function () {
var plugin = jQuery('.wpuf_customs');
plugin.find('>ul').children().insertAfter(plugin)
});
So I had to remove the entire function wpuf_show_meta_front
in the plugin file.
Can you provide a solution to stop the plugin wrapping elements which are not related to it?
Thanks!