• Hello,
    I am playing around with templates and when trying to add IDs somehow I cannot add increment option to it.

    Basically I try:

    global $post;
    while ( have_posts() ):
    the_post();
    $i = 0;
    $lcp_display_output .= “<div id=”;
    $lcp_display_output .= $i++;
    $lcp_display_output .= ” class=’singletab’>”;

    this gives same ID to every item.

    I need the IDs to be predefined like:
    post1,post2,post3,post4.
    I also need to know the IDs ahead, so I can use them in CSS.

    The idea is that I’ll have them appear also somewhere else and will use it as links (#post1, etc).

    I’m sure solution will be something simple, just can’t see it.

    Thank you in advance for your help.

    Very powerful plugin, personally use it on most of my projects.

    with regards

    Van

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Template / add increment’ is closed to new replies.