Plugin Author
Brecht
(@brechtvds)
Looks like your theme is automatically generating a snippet to use on the homepage but isn’t ignoring the HTML when doing that.
Could you try switching to a default theme (like Twenty Seventeen) and see if it happens then?
You could also try manually defining a post excerpt to show on the homepage instead.
Thx Brecht. The code for the home page output shows the following: The posts that have the html/css code output on the home page is the last request below: “[latest_posts style=”list” heading=”Latest News” number=”4″]” So it is outputting something different from the first ones, not sure I understand why. Is there a way I can tell it to output all the most current posts in another style like the others, and that maybe it won’t output the code? I understand that the heading is obviously the heading hard coded, and the number 4 is the number of posts output from the database. I am guessing style=list is the 4 most current posts in the database.
This is the code for the home page:
[vc_row][vc_column][post_block_3 category=”fashion” excerpt_count=”10″ number=”5″][post_block_1 columns=”2″ rows=”2″ link=”no” category=”personal” excerpt_count=”10″ thumb_width=”367″ thumb_height=”240″][latest_posts style=”list” heading=”Latest News” number=”4″][/vc_column][/vc_row]
Hoping this is what you meant by defining it manually! Appreciate your help.
Thx Jennifer
-
This reply was modified 6 years, 3 months ago by
Jennifer.
Plugin Author
Brecht
(@brechtvds)
I’m not that familiar with Visual Composer, I’m afraid.
Here’s how to manually define a post excerpt for the posts:
https://wpshout.com/quick-guides/set-custom-post-excerpt-in-wordpress/
In Gutenberg it’s possible as well. The option is in the sidebar under “Document Settings” after clicking on the cog icon in the top right of the screen.