Hello WordPress Buddies,
I have created a custom WordPress theme, in the functions.php I have created a custom WordPress widget, in this custom widget I have used
WP_Queryloop to get the post title and content. Everything is fine but the issue is
the_content()function is not outputting the HTML tags on the widget, I am just getting the content without any formatting (as when we get with
the_content()function works well (HTML formatting) in page templates and single.php but not echoing the HTML formatted content in custom WordPress widget.
So mates, is it not possible to get HTML formatted content in a widget using
the_content()function? Or is there any way to get HTML formatted content in WordPress widget?
- The topic ‘the_content Function not Working Properly Inside Custom WordPress Widget’ is closed to new replies.