- This topic has 14 replies, 3 voices, and was last updated 1 year ago by
Tom.
-
AuthorPosts
-
April 11, 2020 at 6:15 am #1235030
Anil
Hi,
Please advise to add Date with Day after post title in single.php as in url i submitted.
Migrating my site to GPP.
Best regards.
April 11, 2020 at 6:34 am #1235057David
StaffCustomer SupportHi there,
you can include the day by selecting Custom date format in Dashboard > Settings > General and adding
F j, Y, l
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/April 11, 2020 at 8:18 am #1235302Anil
Thanks David, it is working in admin.
I am using Local by Flywheel for fine tuning GPP before update live site.
I noticed date is not populating and showing blank html
<time class="entry-date published" datetime="" itemprop="datePublished"></time>
but populating updated
<time class="updated" datetime="2015-05-18T23:45:14+05:30" itemprop="dateModified">2015, May 18th, Monday</time> <time class="entry-date published" datetime="" itemprop="datePublished"></time>
Please advise…
April 11, 2020 at 9:47 am #1235396David
StaffCustomer SupportAre you using any Functions to adjust the date ?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/April 11, 2020 at 10:10 am #1235423Anil
No.
April 11, 2020 at 11:45 am #1235526Anil
Hi
I just noticed that wordpress 5.4 can’t create or save post if post date is less than 13 Dec 1901, and can’t display the post date if post date is less than 14 Dec 1901.This seems to be a problem with Local by Flywheel ?
April 11, 2020 at 12:38 pm #1235572Anil
Please tell me to place published date above title of the post in single as well as in archive/home
April 11, 2020 at 4:17 pm #1235700Tom
Lead DeveloperLead DeveloperThat sounds like something is up with your WordPress installation or server for sure.
As for moving the date – is the date the only item you want to place above the title? Will anything be under the title still?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentApril 11, 2020 at 7:33 pm #1235799Anil
Hi Tom, I am just checking the issue of local server.
I want to place just date div (no link) above post title, and no other meta below post title.
Best regards
April 12, 2020 at 9:50 am #1236402Tom
Lead DeveloperLead DeveloperIn that case, you can do this:
remove_action( 'generate_after_entry_title', 'generate_post_meta' ); add_action( 'generate_before_entry_title', 'generate_post_meta' );
Then configure your post meta to only display the date in Customize > Layout > Blog.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentApril 12, 2020 at 10:56 am #1236469Anil
Thanks Tom
Below code is not blocking/removing the output
remove_action( 'generate_after_entry_title', 'generate_post_meta' )
April 12, 2020 at 11:13 am #1236480Anil
It is solved with following code
add_action( 'after_setup_theme', function() { remove_action( 'generate_after_entry_title', 'generate_post_meta' ); } );
April 12, 2020 at 11:37 am #1236491Anil
Final help needed to remove link from published date
Thanks & regards
April 12, 2020 at 11:41 am #1236496Anil
Solved, thanks for all help.
add_filter( 'generate_post_date_output','tu_remove_date_link', 10, 2 ); function tu_remove_date_link( $output, $time_string ) { printf( '<span class="posted-on">%s</span>', $time_string ); }
April 12, 2020 at 4:17 pm #1236654Tom
Lead DeveloperLead DeveloperGlad you got it all working! 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.