manav kalra
Forum Replies Created
-
No, I never touched content-single.php as well. Still, I replaced content-single.php with your provided source.
I only copied template from content.php which I mentioned above i.e.<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> <?php generate_do_microdata( 'article' ); ?>> <div class="inside-article"> <?php /** * generate_before_content hook. * * @since 0.1 * * @hooked generate_featured_page_header_inside_single - 10 */ do_action( 'generate_before_content' ); if ( generate_show_entry_header() ) : ?> <header <?php generate_do_attr( 'entry-header' ); ?>> <?php /** * generate_before_entry_title hook. * * @since 0.1 */ do_action( 'generate_before_entry_title' ); if ( generate_show_title() ) { $params = generate_get_the_title_parameters(); the_title( $params['before'], $params['after'] ); } /** * generate_after_entry_title hook. * * @since 0.1 * * @hooked generate_post_meta - 10 */ do_action( 'generate_after_entry_title' ); ?> </header> <?php endif; /** * generate_after_entry_header hook. * * @since 0.1 * * @hooked generate_post_image - 10 */ do_action( 'generate_after_entry_header' ); $itemprop = ''; if ( 'microdata' === generate_get_schema_type() ) { $itemprop = ' itemprop="text"'; } if ( generate_show_excerpt() ) : ?> <div class="entry-summary"<?php echo $itemprop; // phpcs:ignore -- No escaping needed. ?>> <?php the_excerpt(); ?> </div> <?php else : ?> <div class="entry-content"<?php echo $itemprop; // phpcs:ignore -- No escaping needed. ?>> <?php the_content(); wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'generatepress' ), 'after' => '</div>', ) ); ?> </div> <?php endif; /** * generate_after_entry_content hook. * * @since 0.1 * * @hooked generate_footer_meta - 10 */ do_action( 'generate_after_entry_content' ); /** * generate_after_content hook. * * @since 0.1 */ do_action( 'generate_after_content' ); ?> </div> </article>
Hi @fernandoazarcon2,
I never touched post-meta.php file, still I replaced whole post-meta.php with your provided source, still no change.I added this code, no changes. Still looking for solution.
Can you provide me direct php code snippet to show date, by author, category, tag, leave a comment, I think this will solve my issue. Instead of
do_action( 'generate_after_entry_title' ); do_action( 'generate_after_entry_content' );
I tried same thing with another theme, in that theme everything working fine. So, I think there’s something to do with generatepress.
I already contacted plugin support regarding this issue, they said there’s not any issue with plugin.Any update ?
Yes, You can check in below screenshot. After clicking load more, posts snippet don’t have Date, by author, category, tags, leave a comment.
Only Title, featured image & post excerpt is available.
Screenshot after clicking load more: https://prnt.sc/DBfKeQvS19ec- This reply was modified 1 year, 9 months ago by manav kalra.
This is site: https://www.thenewspeek.com/
No, I didn’t changed.
Forum: Plugins
In reply to: [AMP] Why huge css showing on top ?Hi @milindmore22,
I agree on what you said but this css sometimes automatically disappear and after some days it automatically comes back
Hi @dcooney,
Can you provide any url where we can see items (date, author, category, tags & leave a comment) in list ?
Forum: Fixing WordPress
In reply to: How to replace category link with page linkHi @kausaralm,
Thanks for your reply but this plugin is to change permalink. And I am looking for a php code to replace a particular category url with my given Page url, everywhere wherever that category’s link is present.
I am not getting Post Date, author, category, tag. I am only getting title, featured image & excerpt. One thing more I am not getting boxed layout for each post snippet.
Update:
Got boxed layout by adding additional css:
.alm-reveal article{
margin-bottom: 20px;
}But still post snippet items not showing including post date, author, category, tags & leave a comment
- This reply was modified 2 years, 1 month ago by manav kalra.
This is I copied from content.php
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> <?php generate_do_microdata( 'article' ); ?>> <div class="inside-article"> <?php /** * generate_before_content hook. * * @since 0.1 * * @hooked generate_featured_page_header_inside_single - 10 */ do_action( 'generate_before_content' ); if ( generate_show_entry_header() ) : ?> <header <?php generate_do_attr( 'entry-header' ); ?>> <?php /** * generate_before_entry_title hook. * * @since 0.1 */ do_action( 'generate_before_entry_title' ); if ( generate_show_title() ) { $params = generate_get_the_title_parameters(); the_title( $params['before'], $params['after'] ); } /** * generate_after_entry_title hook. * * @since 0.1 * * @hooked generate_post_meta - 10 */ do_action( 'generate_after_entry_title' ); ?> </header> <?php endif; /** * generate_after_entry_header hook. * * @since 0.1 * * @hooked generate_post_image - 10 */ do_action( 'generate_after_entry_header' ); $itemprop = ''; if ( 'microdata' === generate_get_schema_type() ) { $itemprop = ' itemprop="text"'; } if ( generate_show_excerpt() ) : ?> <?php endif; /** * generate_after_entry_content hook. * * @since 0.1 * * @hooked generate_footer_meta - 10 */ do_action( 'generate_after_entry_content' ); /** * generate_after_content hook. * * @since 0.1 */ do_action( 'generate_after_content' ); ?> </div> </article>
@dcooney, I don’t want to add infinite scroll on my single posts. I want to add infinite scroll on archive pages (category, tags, author) instead of pagination.
I think you misunderstood.