• I’m trying to do a find/replace on the pagination links using PHP but am having trouble putting this code into a variable so that I can do a basic str_replace command. Can anyone recommend a way to do this?

    This is the code rendering the pagination:
    <?php if(function_exists('wp_page_numbers')) { wp_page_numbers(); } ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    That is not a WordPress function. If it is from the plugin of the same name, there are no filters provided for altering its functionality. Seeing that the plugin is outdated and unsupported, if it is from that plugin, just go ahead and directly hack the function’s source code.

    Thread Starter ncj

    (@ncj)

    Thanks, that makes sense now. I ended up finding a solution to the pagination issue that didn’t involve a PHP find/replace and was a little less of a hack.

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

The topic ‘Find/replace on pagination using PHP’ is closed to new replies.