How to Add time and permanent link to Single Post

Posted in: Newspaper
Post count: 7

Tue July 30 2019 4:43 pm https://www.example.com/?p=578271

Could someone please tell me how to add the text above in a single post directly under the single post title? I would like to display this information (instead of just July 30 2019, for example). In other words I would like to be able to display the full date and time the permanent link instead of just the permanent link for each article.

Post count: 7

Just to clarify, I would like to be able to display the full date and time and the permanent link instead of just the date for each article.

Post count: 35449

Hi,

I think that this is what you want to achieve http://prntscr.com/omt6yq -> http://prntscr.com/omt841 -> http://prntscr.com/omt8av for this you’ll need to set in WordPress Settings> General also you can check more about WordPress date here -> https://wordpress.org/support/article/formatting-date-and-time/
If this is not what you want, please provide some more details and some screenshots and I will gladly help you!

Hope this will help you!
Thanks!

Post count: 7

Thanks Calin, that fixed the date. However I would also like to have the permanent link display just to the right of the date and time. In a previous template I was able to achieve this by placing the following code in single.php or in a child theme. … ID; ?>”title=”Right-Click or Control-Click (Mac) to copy SHORT LINK and paste into twitter or Facebook”><?php echo get_bloginfo(‘url’).”/?p=”.$post->ID; ?> Here is a live demo from another website which you would have to view from a desktop, Mac or PC … https://www.arlingtoncardinal.com/?p=578270

Post count: 35449

Hi,

Yes, this can be achieve with our theme too, you can modify one single page and on all default post templates will appear the permalinks after the date, this file is td_module_single_base.php and can be found in wp-content/plugins/td-composer/legacy/common/wp_booster/td_module_single_base.php -> http://prntscr.com/onb2e0 -> http://prntscr.com/onb2nq -> http://prntscr.com/onb2te the code https://pastebin.com/DLxK3mPu
Or you can set the code only on the templates you want to show the permalinks like this -> http://prntscr.com/onb350 -> http://prntscr.com/onb4jl -> http://prntscr.com/onb4rs -> http://prntscr.com/onb4w8 this code will be apply only on page template/style 1 code https://pastebin.com/j4S5Ldzk you’ll need to set the php code in each loop-single-n.php you want to show the permalinks -> http://prntscr.com/onb5kf
Also you can check our documentation for child theme here -> https://forum.tagdiv.com/the-child-theme-support-tutorial/

Hope this will help you!
Thanks!

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.