after using [wpbb post:excerpt] the url [wpbb post:url] returns the url of the current post, not the post in the loop for related posts.
We’ve tested it, and all values after using post:excerpt, like [wpbb post:link text=“title”] and [wpbb post:url], return the data of the current post, not the data of the looped posts.
So in the example code above, image, title, excerpt text are all correctly displayed, except for the link on the read more button. Which points to the current postpage.
With the default bb posts layout the read more link fails as well. So it’s not specifically caused by the custom layout.
It seems this problem occurres since the latest beaver builder update. Can you fix this issue?
We’ve already used the posts module and excluded the current post. The code you see above is when you select “Custom layout” in the Layout tab of the posts module. Please reread the issue…
Still pretty strange that all other shortcodes like [wpbb post:url] work to display other posts in the posts module prior to the [wpbb post:excerpt] shortcode. Can you explain?
The shortcodes will work, but if you use them on a single post it will pull in the current posts data. So on a single post the post URL is the current post you’re viewing so that will be the link for the post.
The same goes for post title, featured image and so forth. This is why if you want to create a section on your single post for related posts you will want to use the Post module without using the custom layout editor/field connections or the method I linked above.
But that is the weird part. The title and feature image are displaying the related posts content. Even the URL works. But once I use the excerpt shortcode, all shortcodes that follow for that related post show the current posts data. The same problem occurs when I don’t use the custom layout, but a default bb posts module layout. So that doesn’t solve it.
Because it’s only the excerpt that causes the problem, I’m curious if it’s a bug that can be fixed. Or is there a shortcode that displays only the summary and evades the excerpt issue?
(I solved my particular issue by placing the read more link url shortcode above the excerpt shortcode and use css to place the read more link under the excerpt while displaying. But i’d rather do it in a logical stuctured fashion.)