{"id":2285842,"date":"2011-09-07T21:44:38","date_gmt":"2011-09-07T21:44:38","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/generating-a-dynamic-read-more-link\/"},"modified":"2016-08-20T02:20:31","modified_gmt":"2016-08-20T02:20:31","slug":"generating-a-dynamic-read-more-link","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/generating-a-dynamic-read-more-link\/","title":{"rendered":"Generating a dynamic &quot;Read More&quot; link"},"content":{"rendered":"<p>I purchased a theme and I have been making the changes I want to it. By default, there is a &#8220;read &#8220;more&#8221; link on the post page of the blog for each post. The text showing for the post might be the full post or it might be an excerpt. <\/p>\n<p>I only want to show the &#8220;read more&#8221; if there is more to the actual post.<\/p>\n<p>I found where to make the change in the code (functions.php) but I am very weak in PHP syntax. if I code &#8220;echo the_permalink();&#8221;, in the conditional code section I get the link to the full post which is what I need. Now I need to concatenate that into an href string but I do not know how.<\/p>\n<p><code>&lt;a href=&quot;[permalink]&quot;&gt;read more&lt;\/a&gt;<\/code><\/p>\n<p> Can someone help me out with this?<\/p>\n<p>Thanks in advance<\/p>\n","protected":false},"template":"","class_list":["post-2285842","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/2285842","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/2285842\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=2285842"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}