What is the difference between posts vs. Pageshow to store the post title in variable?
Answer Posted / Preeti Gupta
In WordPress, both posts and pages have titles. However, they are used differently:
1. Posts: These are typically blog entries that are displayed in reverse chronological order on a blog page. Each post has a unique title.
2. Pages: These are static, non-time-sensitive content such as About Us, Contact Us, or FAQ pages. Each page also has a unique title.
To store the post title in a variable, you can use php's get_the_title() function within a WordPress loop.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers