Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


how to store the post title in variable?



how to store the post title in variable?..

Answer / Nikhil Claudius

To store the post title in a variable, you can use PHP's get_the_title() function within the Loop (index.php or single.php) like this: nn```phpn$post_title = get_the_title();n```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More WordPress Interview Questions

Why is a static front page used in WordPress and how can you create one?

1 Answers  


What is WordPress?

1 Answers  


Is wordpress good for professional websites?

1 Answers  


Does wordpress require coding?

1 Answers  


How do I copy a web page?

1 Answers  


Tell me do I need to know any programming to make updates?

1 Answers  


How to add custom dynamic sidebars in wordpress?

1 Answers  


Is it easy to use wordpress?

1 Answers  


Is wordpress free with bluehost?

1 Answers  


Define what are the steps you can take if your WordPress file is hacked?

1 Answers  


How many tables default wordpress have? Can you name those default wordpress table?

1 Answers  


What is the difference between the two urls in general settings?

1 Answers  


Categories