html - Read more link in wordpress -
i've been trying change read more buttons in front page while
i've narrowed down html text.
printf('<p>%s</p>', get_the_excerpt($post->id)); printf('<a href="%s" class="button">read more</a>', post_permalink($post->id));
i wondering how come read more buttons/links don't have urls? , post id mean?
there's info on treatment of wordpress variables here. in case, %s string variable within printf being generated functions get_the_excerpt() , post_permalink()
both of functions using id of post (post id) retrieve results print.
Comments
Post a Comment