Site logo

Archived topic

More Button Problem ....

10 replies · Started by Gerhard on November 21, 2019

Viewing posts 1–11 of 11

Since the update to 2.4.0 /1.9.0, there are errors when displaying the More Button.

Display more Posts (after second press):

+ More > null+More

+ Loading = +nullLoading

etc.

Hi there,

that is peculiar - can you try disabling any plugins or custom functions you have to see if there is a conflict

Hi,

Thanks for the 0815 standard support suggestion, I always try this first before I write a message.

That brings no solution, with GP 2.3.x with GP Premium 1.8 has worked without problems.

GP 2.4.0 and GP Premium 1.9 generate the error.

GP 2.4.0 and GP Premium "1.8" works

It is clearly on the GP Premium "1.9" plugin, please fix the problem!

Thanks a lot!

I am unable to replicate the error on either a clean or updated install using 2.4 and 1.9.
Do you have any custom functions or code within GP Hooks?

I have exactly the same problem. All latest WP, GP, and GPP versions. It happens to two sites. I copied one site to a staging environment and disabled all plugins, caching, etc, apart from GP Premium. I only kept "Code Snippets" active with this code to add a custom post type called "video" to the archives:

function my_cptui_add_post_types_to_archives( $query ) {
	// We do not want unintended consequences.
	if ( is_admin() || ! $query->is_main_query() ) {
		return;    
	}

	if ( is_category() || is_tag() && empty( $query->query_vars['suppress_filters'] ) ) {

		// Replace these slugs with the post types you want to include.
		$cptui_post_types = array( 'video' );

		$query->set(
	  		'post_type',
			array_merge(
				array( 'post' ),
				$cptui_post_types
			)
		);
	}
}
add_filter( 'pre_get_posts', 'my_cptui_add_post_types_to_archives' );

Maybe the issue happens for custom post type archives?

It turns out to be a bug and that will be patched in the next update which should be released tomorrow.

Excellent, thank you!

Thank you for the superfast fix, works great now!

Awesome! Sorry for the bug :)

Thank you for the fix, works great!

Awesome! Thanks for reporting the issue :)

This archived topic is closed to new replies.