I am displaying the blog posts for this site in a WordPress Archives Block using just the 'Post Content (Body)' Post Field in the WordPress Archive Loop and the Masonry Loop Style.
You can see the current result at hidden link .
I expected to see only the post content up to the 'More' blocks inserted in each post to be displayed.
Instead, the entire post content (body) of each post is displayed.
Hello. Thank you for contacting the Toolset support.
Currently, this issue is known to us and there is no way to parse the read more block (tag).
We can display the post excerpt but if we will go with that it will not display the image as expert do not recognise the image.
What I suggest is you should setup a featured image but if all post content is already setup then it will not be a good idea to go through all the posts and update related featured image for every post.
I suggest you should use some filter or hook or custom shortcode that should help you to parse the "more" tag you added before displaying the content on frontend.
or
another workaround would be we can create a shortcode that should limit the post body content up 300-500 characters and we should add the read more link , when we click on read more link that should redirect user to the single post.
Thank you for your reply, Minesh. I'm disappointed to learn it's a known issue; I hope that sometime in the future Toolset will be able to parse the Read More tag!
The problem with using the post excerpt (besides needing to convert embedded images in existing posts to featured images) is that the current maximum limit of 30 words is much less than wanted in this use case. So I'm very interested in your idea of a shortcode to limit the post body content length if that could be to 300-500 words or 1500-2500 characters, but I'm not sure how to proceed. Can you show me how to accomplish this?
I tried all possible ways but it just not working as expected as the image is added to the post body, we can not have real count of words or characters as well as when I do count of character or word the image added to post body is stirp out.
I do not have any other solution to offer at the moment.
I can strip the embedded images out of the post body and make them featured images, so the post body will contain only text. Will one of your possible ways work in that case?
If you setup a featured image then what you need to do is.
You should setup your loop output as:
- Add image block that will help you to display featured image
- Add single field block and with that you should display the post excerpt with this you can control how many words you want to display
- if you do not want to display the post body content using excerpt, then yes, one of the solution I shared will work
I'm a bit confused. I'm now displaying the post featured image. But I don't want to use the post excerpt because it won't let me display 1500-2500 characters. I want to use the post body but with the limit shortcode - how do I do that?
But you have to setup the value for the featured image then and then the image will get displayed.
For instance, check the following post, there is a Featured Image tab on right side bar, there you need to upload the image, then you can able to display the Featured Image on frontend.
=> hidden link
I hope that you understand that for every post you have to setup the featured image.