[wp-trac] [WordPress Trac] #28433: allow for more control on paginate_links list element
WordPress Trac
noreply at wordpress.org
Mon Oct 20 17:57:04 UTC 2014
#28433: allow for more control on paginate_links list element
------------------------------------+-----------------------------
Reporter: FrancescoRizzi | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: General | Version: 4.0
Severity: normal | Resolution:
Keywords: needs-patch needs-docs | Focuses: ui, template
------------------------------------+-----------------------------
Comment (by jcastaneda):
I would second wontfix.
It returns an array that you can modify to your choosing.
{{{
$links = paginate_link( array( 'type' => 'array' ) );
foreach( $links as $link ){
echo '<span class="item">' . $link . '</span>';
}
// or alternaticvely
$nav = '<ul class="page-nav"><li> . join( '</li><li class="link-item">',
$links ) . '</li></ul>';
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28433#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list