- This topic has 12 replies, 3 voices, and was last updated 4 years, 4 months ago by
David.
-
AuthorPosts
-
January 13, 2016 at 4:14 am #165513
Peter Islin Nielsen
Hi Tom,
Is there a way to place the post date above the post header without editing the PHP files? It should be on both the blog page and on the post pages itself. I hope it makes sense ๐
Thanks!
/Peter
January 13, 2016 at 10:24 am #165595Tom
Lead DeveloperLead DeveloperHi Peter,
Without using PHP it’s not possible – even with it’s kind of difficult (but possible).
I see the need/want to do something like this, so I’ll look into making an adjustment that makes it easier ๐
January 13, 2016 at 11:46 am #165615Peter Islin Nielsen
Hi Tom,
OK, thanks. It’s not a biggie, so for now I’ll just try to pursuade the designer to keep it as it is ๐
/Peter
January 13, 2016 at 11:43 pm #165707Tom
Lead DeveloperLead DeveloperI’ll update this post when I have something figured out ๐
March 21, 2016 at 10:41 pm #180822Tom
Lead DeveloperLead DeveloperIn 1.3.29 you’ll be able to do this:
add_action( 'after_setup_theme', 'generate_move_post_meta' ); function generate_move_post_meta() { remove_action( 'generate_after_entry_title', 'generate_post_meta' ); add_action( 'generate_before_entry_title', 'generate_post_meta' ); }March 22, 2016 at 12:30 am #180827Peter Islin Nielsen
Great, Tom! Thanks for letting me know ๐
March 22, 2016 at 12:39 am #180830Tom
Lead DeveloperLead DeveloperNo problem ๐
March 20, 2020 at 6:17 pm #1201139Ariel
To avoid making a new thread I’m hoping maybe to find help here as I am trying to do something similar. I’m looking to move the post date above the post header but only on the single article page. Anyone have any suggestions?
March 21, 2020 at 8:18 am #1201911Tom
Lead DeveloperLead DeveloperHi there,
What about the other post meta like the author? Also above the title, or still below?
October 15, 2021 at 10:21 am #1964693Berto
Hi Tom,
Not sure if I have missed something with the code but when I insert it, I am able to change position but I get two dates displaying.
add_action( 'after_setup_theme', 'generate_move_post_meta' ); function generate_move_post_meta() { remove_action( 'generate_after_entry_title', 'generate_post_meta' ); add_action( 'generate_after_entry_content', 'generate_post_meta', 20 ); }Any ideas? This screenshot shows you that the date appears at the bottom but the one below the title remains and is not removed.
https://gyazo.com/22b35a04a4085a7fcb769e095f520c2aOctober 15, 2021 at 11:25 am #1964753Berto
Never mind I managed to sort it. Thanks.
November 22, 2021 at 2:41 am #2014186Fabrizio
Can you please tell me how you did it? I was unable to remove the original date. Now I see 2 dates.
ScreenshotNovember 22, 2021 at 5:41 am #2014401David
StaffCustomer SupportHi there,
can you raise a new topic where we can provide some options to do this.
-
AuthorPosts
- You must be logged in to reply to this topic.