aroengbinang
Forum Replies Created
-
Forum: Themes and Templates
In reply to: How to Remove ", Page 1" in Paginated Single PostFor the benefit for those who need it, these are the solutions that I got through email from Jevuska (https://www.jevuska.com/). Many thanks to him!
To remove paging title from the first page of the paginated post, add to functions.php:
if ( class_exists( 'gregsHighPerformanceSEO' ) ) : add_filter( 'pre_get_document_title', function( $title ) { if ( is_single() && ( int ) 2 > get_query_var( 'page' ) ) return single_post_title( '', false ); //custom title #return ''; //back to default post title return $title; } ); endif;
To remove paging Meta Description of the first page of the paginated posts, add to functions.php
/** * Remove action from anonimous class name * Credit https://github.com/herewithme/wp-filters-extras/blob/master/wp-filters-extras.php * Build again meta description * */ if ( class_exists( 'gregsHighPerformanceSEO' ) ) : add_action( 'wp', function( $wp ) { if ( isset( $wp->query_vars['page'] ) && ( int ) 2 > $wp->query_vars['page'] ) { //remove plugin hook global $wp_filter; $hook_name = 'wp_head'; $priority = 2; $class_name = 'gregsHighPerformanceSEO'; $method_name = 'head_desc'; if ( ! isset( $wp_filter[ $hook_name][ $priority ] ) || ! is_array( $wp_filter[ $hook_name ][$priority ] ) ) return false; foreach( ( array ) $wp_filter[ $hook_name ][ $priority ] as $unique_id => $filter_array ) { if ( isset( $filter_array['function'] ) && is_array( $filter_array['function'] ) ) { if ( is_object( $filter_array['function'][0] ) && get_class( $filter_array['function'][0] ) && get_class( $filter_array['function'][0] ) == $class_name && $filter_array['function'][1] == $method_name ) { unset( $wp_filter[ $hook_name ][ $priority ][ $unique_id ] ); } } } return false; } } ); //build new meta description early add_action( 'wp_head', function() { if ( is_single() && ( int ) 2 > get_query_var( 'page' ) ) { $gregsHighPerformanceSEO = new gregsHighPerformanceSEO; echo $gregsHighPerformanceSEO->head_desc(); } }, 2 ); endif;
Forum: Themes and Templates
In reply to: How to Remove ", Page 1" in Paginated Single PostAwesome!
It’s not theme issue, but on the Greg’s High Performance SEO plugin’s setting under “Main Titles”. Many thanks for turning on the lights!
Cheers,
BambangForum: Themes and Templates
In reply to: How to Remove ", Page 1" in Paginated Single PostHi Michael,
I’m using Greg’s High Performance SEO, and Twenty Fifteen 1.3 version. Thanks for replying, hope to get some lights about the issue.
Best regards,
BambangForum: Fixing WordPress
In reply to: Random Post in AMPAlright, thanks.
Forum: Fixing WordPress
In reply to: Random Post in AMPThanks for the suggestion, I should have posted it at the plugin’s support thread.
Forum: Themes and Templates
In reply to: [Theme Twenty Fourteen] Adsense after second post in the loopHi, many thanks for the code.
Just wondering what code should be added or changed to place the ads below title?
Tried changing the_post with the_content, but the post content disappeared, although the ads was at the place where I wanted it to be. The same happened when replaced it with the_title.
Thanks in advance ….
Forum: Plugins
In reply to: [WP Super Cache] Preload caching too oftenSame problem. Preload started again just a few minutes after finishing scheduled preload process. Probably it was because I changed preload schedule and hit “preload cache now”, but the original schedule was still there and executed.
Tried to resolve it by changing the preload setting to 0, updated, and kept that way until more than 2 days (2880 minutes, my scheduled preload settting). It’s similar to “flushing period”.
Then I set preload schedule again to run at 2880 minutes, updated, without hitting “preload cache now”. Two days later preload process started as scheduled, and the problem disappeared.
Here’s the link: https://www.ads-software.com/extend/plugins/wp-postviews/
The widget title is Views (WP-PostViews views statistics), Statistic Type: Most Viewed, Include Views From: Post Only.
Regards,
Yes, that’s right. Very glad to hear that…
Hope to get the left arrow as well.Many thanks Jasie!!
Hi Jasie,
Here’s the link: https://thearoengbinangproject.com/
Sorry, it’s in Indonesian language, but there’s Google Translate widget that may help.
Thanks!
Displaying the left arrow without a link would be good enough. Pointing it to the last number would be better.
Thanks for the response, much appreciated.
Hi Lester, thanks.
I’m not sure what to do with the code to paginate WP-PostViews views statistics widget, using Widget Paginator plugin? This is to have consistent look, and save space. Sorry for my limited knowledge on programming.