Tagged Questions
1
vote
2answers
1k views
Shortcode from a widget is wrapped in unwanted <p> element
I'm using Black Studio TinyMCE Widget as a rich text editor widget. In a sidebar I inserted the TinyMCE widget with a [testimonial] shortcode and some content after it.
For example:
[testimonial]
...
5
votes
4answers
1k views
No filter of code on switch from html to visual editor, how?
Yes, i have found other questions to this topic, but no have the same topic exactly and no solution for my problem.
If you include code inside the html-tab and you switch to the visual mode, then ...
1
vote
0answers
96 views
include a post unrendered into a post, then render the whole thing [closed]
With a few extra lines in my functions.php I've created a shortcode that lets me include the content of a post:
function include_content( $atts ) {
$id = (int) $atts['id'];
if ( ! $post = ...
7
votes
5answers
8k views
remove empty paragraphs from the_content?
Hey guys,
I simply want to prevent the creation of empty paragraphs in my wordpress post. That happens quite often when trying to manually space content.
I don't know why this doesn't take effect?
...