• Hi!

    I am not into php syntax. I need a those 2 lines together.

    $text_before = '
    <li>'; $text_after = '</li>
    '; $text_container_before = ''; $text_container_after = '';

    [line of sobeks_posts_in_category.php]

    and this:
    <?php if ( $post->ID == $wp_query->post->ID ) { echo ' class="current"'; } else {} ?> [a way to highlight posts]

    i have tried:
    $text_before = '<li if ( $post->ID == $wp_query->post->ID ) { echo ' class="current"'; } else {} >'; $text_after = ''; $text_container_before = ''; $text_container_after = '';

    but this is not working.

    What i need:
    a list of posts of the current category with highlighting

  • The topic ‘sobeks posts in category highlight’ is closed to new replies.