change title in number of Links (2 posts)

  1. jcmx
    Posted 4 years ago #

    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>

  2. jcmx
    Posted 4 years ago #

    Thanks in advance

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-Paginate
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic