Showing position on each post
-
I’m trying to show the position of every post showed on the widget.
To do that I edited lines 1918/1924 in this way:
$content = '<li' . ( ( $this->current_post_id == $p->id ) ? ' class="current"' : '' ) . '>' . $thumb . '>' . $posizione . '</span>' . '<a>current_post_id == $p->id ) ? '' : 'href="' . $permalink . '"' ) . ' title="' . esc_attr($title) . '" class="wpp-post-title" target="' . $this->user_settings['tools']['link']['target'] . '">' . $title_sub . '</a> ' . $excerpt . $_stats . $rating . "\n"; $posizione++;
The problem it’s that I don’t understand where I can put the variable declaration:
$posizione = 1;
Because if I place into that function it will show 1 on every post.
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Showing position on each post’ is closed to new replies.