I made a page with several POST IDs that I get from the Table of a plugin.
Now the page is showing like: 3249 3250 3251 3252 (Post IDS)
I wanna show the title of those IDs like
3249 - POST TITLE OF 3249 3250 - POST TITLE OF 3250
etc...
I made a page with several POST IDs that I get from the Table of a plugin.
Now the page is showing like: 3249 3250 3251 3252 (Post IDS)
I wanna show the title of those IDs like
3249 - POST TITLE OF 3249 3250 - POST TITLE OF 3250
etc...
Share Improve this question asked Apr 3, 2020 at 15:47 Philip KavPhilip Kav 191 silver badge2 bronze badges1 Answer
Reset to default 2WordPress has a ton of the get_the_*()
functions which you can pass an ID and return a value you're looking for. In this case you can call get_the_title()
which returns the title of a post. An example could look like:
echo get_the_title( 3249 );