Editing dynamic list items
-
Hi there,
I am using a theme were you can create projects and one of my pages is a project category page – https://www.coffeetoast.co.uk/new/project_category/portfolio/
Basically, it has 6 projects pieces on there atm but only 3 are actually finished. Ideally I would like to disable the link for three of them (which I can do with a couple of lines of css) but I cannot target the project items I want in the code as it is dynamic (I think that is the right term).
The projects are created using the following code
<li> <?php $thumb = ''; $width = (int) apply_filters( 'et_project_image_width', 307 ); $height = (int) apply_filters( 'et_project_image_height', 209 ); $classtext = ''; $titletext = get_the_title(); $thumbnail = get_thumbnail( $width, $height, $classtext, $titletext, $titletext, false, 'Indeximage' ); $thumb = $thumbnail["thumb"]; print_thumbnail( $thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, $classtext ); ?> <div class="project-description"> <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> </div> </li>
So each time I add a new project, a new list item gets added. Is there a way I can select individual list items and apply some css to them?
Many thanks in advance.
Jack
- The topic ‘Editing dynamic list items’ is closed to new replies.