Skip to content

Tag: wordpress

Adding PHP code to display dateline in all posts for WordPress

I run a WordPress site, and I’d like to print a dateline (ex: “July 22, 2020 at 1:05 p.m. EDT”) under the featured image at the top of each post, a time of the post’s initial publication. Though datelines are common in news sites and blogs, my theme doesn’t present them as option…

WordPress theme functions.php not used for non-loggedin users

I’m trying to create a function to redirect users to the login page if they are not logged in for some pages, this is my code: As it didn’t work and I tried every simplifications I tried to add a print “hello” at the beginning of the parent and child theme functions.php nothing is prin…