Show specific Post Title in WordPress using php code
Updated On May 23, 2015 October 2, 2012 -Written ByWordPress has in-built core php coding to display latest posts on the homepage. Users with advanced PHP knowledge can easily create custom code for showing posts and related information as per requirement. However, for users trying to learn PHP syntax, even simple code can be tough nut to crack.
PHP code to display specific Post title by Post ID
For beginners wanting to know PHP coding for use in WordPress, following can be small starting step to learn. Checkout following code that display specific post title and related variations.
NOTE – In the following code 94 is the post ID whose post title the code displays. You need to replace 94 with the ID number of the post that you want to show. Just hover over post in WordPress dashboard to view its ID in the URL below. If you face problem, check article to find category IDs in WordPress, same procedure apply for finding post IDs.
1. Show clickable Post title
[cc]
“>post_title; ?>
[/cc]
4. Show clickable Post title with specific class style
[cc]