Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @matejem,

    Which post type do you have the issue with?
    In the blog posts or products?

    This article is for posts on the blog page(s): https://docs.oceanwp.org/article/466-add-category-description-in-the-category-page; but on your live URL, you don’t have posts.

    If you want to set category descriptions on paged pages for products(WooCommerce), you need to use the following function:

    function oceanwp_woocommerce_taxonomy_archive_description() {
        if ( is_tax( array( 'product_cat', 'product_tag' ) ) && get_query_var( 'paged' ) != 0 ) {
            $description = wc_format_content( term_description() );
            if ( $description ) {
                 echo wp_kses_post( $description );
            }
        }
    }
    add_action( 'woocommerce_archive_description', 'oceanwp_woocommerce_taxonomy_archive_description');

    Note 1: By default, the WooComerce plugin itself would only display the description on the main category page; so the code above will solve the issue on paged(2, 3, 4, …) pages.

    Note 2: Please add that function to the child theme; Download the child theme: https://docs.oceanwp.org/article/90-sample-child-theme.

    I hope it helps,
    Best Regards

    • This reply was modified 3 years, 4 months ago by Shahin.
    • This reply was modified 3 years, 4 months ago by Shahin.
    Thread Starter matejem

    (@matejem)

    Thank you, i found solution. This one did not help but thank you.

    I’m glad that you were able to resolve that.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Pagination category description’ is closed to new replies.