I think this might be an easier question but I can’t figure it out.
How can I add simple text inside a short code?
For example:
$return_string .= '<a href="'.get_permalink().'"><div>'.read more.'</div></a>';
So, I don’t just want to return text, but I want to return text and a link. I am using this shortcode to query the posts, but I want to add a “read more” link after each excerpt, but I cant figure out how to just add the text “read more.”
Any help would be appreciated!
hello you can try this
The shortcode will be something like this