Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Hero Block: Don’t display beyond first page of results

  • Try this:

    add_filter( 'generate_element_display', function( $display, $element_id ) {
        $excluded_ids = array( 33498, 33659, 33662, 33666 ); // Add your element IDs here
    
        if ( in_array( $element_id, $excluded_ids ) && is_paged() ) {
            $display = false;
        }
    
        return $display;
    }, 10, 2 );
  • That’s it. All working now.

  • Glad to hear that 🙂

Viewing 3 posts - 17 through 19 (of 19 total)
  • You must be logged in to reply to this topic.