[Resolved] [Plugin: WP Document Revisions] Wp doc rev: How to query properly
Thanks for the BRILLIANT plugin. I’m struggling with query at the moment and wondered if someone here knows answer. I have a following query but I’d need to get UL tags inside if statement (and some other stuff). Any idea? Normal ‘if while’ structure leads to errors
<ul> <?php global $post; $args = array( 'numberposts' => 500, 'orderby' => 'date', 'year' => '2012', 'order' => 'ASC', 'document_language' => 'english'); $myposts = get_documents( $args ); foreach( $myposts as $post ) : setup_postdata($post); ?> <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li> <?php endforeach; ?> </ul>
- The topic ‘[Resolved] [Plugin: WP Document Revisions] Wp doc rev: How to query properly’ is closed to new replies.