manav kalra
Forum Replies Created
-
Thanks @leohsiang, its perfect ??
Hi @fernandoazarcon2,
Thanks for your reply.
I want to exclude current category or tag from showing in post snippet on archive pages?- This reply was modified 8 months, 2 weeks ago by manav kalra.
Hi @leohsiang,
Thanks for your reply.
Yes, Sure. Here’s the link of category & tag page: https://alluncover.com/category/bollywood/ – Category Pagehttps://alluncover.com/tag/salman-khan/ – Tag Page
On category & Tag pages, For all posts snippet, I want to show all categories & tags except current one.- This reply was modified 8 months, 2 weeks ago by manav kalra.
- This reply was modified 8 months, 2 weeks ago by manav kalra.
Forum: Plugins
In reply to: [List category posts] How to hide current post link & title from list ?Thanks. ??
I added code using “code snippet” plugin. I am attaching screenshot for reference. Check Screenshot: https://prnt.sc/IIhUbGzOX5OD
add_filter('widget_posts_args', 'filter_recent_posts_widget_parameters'); function filter_recent_posts_widget_parameters($args, $instance) { $args['orderby'] = 'modified'; return $args; }
This is code which I used.
Hi David,
Sorry its Recent Posts Block widget in sidebar. I tried your above solution but it didn’t worked.Hi David,
Thanks for your reply. I know about Query Loop block but here I want to show recent updated posts under default recent posts widget using code snippet, I don’t want to use anything else for now.
My issue is solved, I am marking this as resolved.
And its done, Thanks alot !!!!
Theme Support, That’s the main reason I am using Generatepress on my all sites.
Once again thanks & I really appreciate Generatepress support!I find out that generatepress hooks not working in plugin repeater template, can you please provide me direct html(with div tag & author link) and php code to show date, by author in place of do_action( ‘generate_after_entry_title’ ); hook
& direct code (php and html with div tag with link) to show category, tag, leave a comment in place of do_action( ‘generate_after_entry_content’ );
For example: I tried<?php the_author(); ?>
It’s showing author but link to author profile and div tag is missing.
Done as you said, I added this snippet in code snippet plugin.
Still no change after clicking load more.I added in like this in plugin repeater template
<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 */ add_filter( 'generate_header_entry_meta_items', function( $items ) { return array( 'author', 'date', 'comments-link', 'categories'); } ); ?> </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 */ add_action( 'wp', function() { add_filter( 'generate_show_comments', '__return_true' ); } ); /** * generate_after_content hook. * * @since 0.1 */ do_action( 'generate_after_content' ); ?> </div> </article>
Done, still no change.
Everything is working fine except data not coming by using
do_action( 'generate_after_entry_title' ); do_action( 'generate_after_entry_content' );