Suppose I have 3 posts on my wordpress site titled:
Test_post_1
with tagtest_tag
Test_post_2
with no tagTest_post_3
with tagtest_tag
Suppose now that I have one page titled page_1
. On that page I have some written text. At the end of that page I want to link to my 2 posts with tag test_tag
. I want the 2 links to appear as post excerpts, with post title, featured image and about 50 words. (Here is an example of such post excerpts.)
I have did some reaseach on this, and it appears I need to use the php the_excerpt()
function. This would result in making specific page templates in wordpress or adjusting page php code. I have some leads on how to do this already, but that is not what I want. I want a simple way to add post experts from the page editor in wordpress. Something as simple as a shortcode. Something like [excerpt tag="test_tag"]
that I can put right after my text in the page editor. Has anyone any leads for similar simple ways?