• Resolved dplayer

    (@dplayer)


    I need to add the php wp_paginate code to my templates.

    I can’t find it in the installation. Can you add this to the install docs?

    This doesn’t work:

    <?php if(function_exists('wp_paginate')):
                wp_paginate(); ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter dplayer

    (@dplayer)

    Okay, I found this code and no error.

    
    <?php if(function_exists('wp_paginate')) {
       wp_paginate();
    } ?>e-bg px-5">  

    Pagination shows up on my search results, but not category pages so far.

    I use a custom theme so I will test and try.

    I ha

    Plugin Author AlanP57

    (@alanp57)

    In WordPress, the template used for category pages is determined by the theme you are using. Normally, the “category.php” template file is used to display the content of category pages.

    If the theme you are using doesn’t have a “category.php” file, WordPress will fall back to using the “archive.php” template file. If the theme doesn’t have an “archive.php” file either, it will use the “index.php” file. Try adding the code to one of these.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP code’ is closed to new replies.