WordPress.org

Support

Support » Plugins and Hacks » [Plugin: WP-Paginate] change title in number of Links

[Plugin: WP-Paginate] change title in number of Links

  • Im looking one way to change the property title=” ” for links in the pagination of the categories to display the name of the active category

    In the current mode shows this:

    <a class="page" title="2" href="http://www.ericmmartin.com/category/general/page/2/">2</a>

    for each of the pages:

    Pages: 1 2 3 4 5…

    observing the code, I see this

    function paginate_loop($start, $max, $page = 0) {
    			$output = "";
    			for ($i = $start; $i <= $max; $i++) {
    				$p = ($this->type === 'posts') ? esc_url(get_pagenum_link($i)) : get_comments_pagenum_link($i);
    				$output .= ($page == intval($i))
    					? "<li><span class='page current'>$i</span></li>"
    					: "<li><a href='$p' title='$i'>$i</a></li>";

    My question is How I can modify for show some like this:

    <a class="page" title="active category name" href="http://www.ericmmartin.com/category/general/page/2/">2</a>

    <a class="page" title="general" href="http://www.ericmmartin.com/category/general/page/2/">2</a>

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WP-Paginate] change title in number of Links’ is closed to new replies.