Customizing wp_link_pages

I don’t see a way to do this with just the standard arguments but you can do it with a filter: function link_hack_wpse_($output,$args) { global $page, $numpages; $xofy = $page.’ of ‘.$numpages; if (1 == $page) { $output = str_replace($args[‘after’],” $xofy{$args[‘after’]}”,$output); } elseif ($page == $numpages) { $output = str_replace($args[‘before’],”{$args[‘before’]}$xofy “,$output); } else { $output … Read more