Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div style="margin: 200px; z-index: 100; background: yellow; position: relative">
- <?php
- $myp = new WP_Query( array(
- 'post_type' => 'not-translated',
- 'name' => 'test post'
- )
- );
- if ( $myp->have_posts() ) {
- echo '<ul>';
- while ( $myp->have_posts() ) {
- $myp->the_post();
- echo '<li>' . get_the_title() . '</li>';
- }
- echo '</ul>';
- } else {
- echo 'no posts';
- }
- ?>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement