最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How to make post title to appear after an image?

programmeradmin0浏览0评论

Normally, the post title is at the top of the page in wordpress. I would like the post title to appear after adding an image to my blog.

I have already created a custom post template. I would like your help to know what code needs to be added to that template PHP file to make this possible.

You can have a look at this blog created by me. I would like to have something exactly like this. below the post title, if the date of post published, author name can appear it would be great. /intercom-inspiration-blog-style/

Normally, the post title is at the top of the page in wordpress. I would like the post title to appear after adding an image to my blog.

I have already created a custom post template. I would like your help to know what code needs to be added to that template PHP file to make this possible.

You can have a look at this blog created by me. I would like to have something exactly like this. below the post title, if the date of post published, author name can appear it would be great. https://pimpthat.site/intercom-inspiration-blog-style/

Share Improve this question asked Nov 24, 2020 at 9:31 Saiyokeshwar ManojkrishnaSaiyokeshwar Manojkrishna 1 1
  • This would go a lot better if you included the code from your template, that was someone could show you were to insert the code for the thumbnail, title and author. (The author would probably have to be added in the entry-meta tag that lists the date and categories, but that varies from theme to theme and you may want to output the entire thing yourself.) – Tony Djukic Commented Nov 27, 2020 at 16:02
Add a comment  | 

1 Answer 1

Reset to default 0

get_the_post_thumbnail() and get_the_title() have to be switched in order in the PHP file.

发布评论

评论列表(0)

  1. 暂无评论