Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- This is returning me a blank page. This page is loaded using a jQuery Ajax call. It used to work before when it was added in the main page. What may be the problem?
- */
- <?php
- define('WP_USE_THEMES', false);
- include('../../../wp-blog-header.php'); // the path is correct, I verified it
- include('../../../wp-load.php');
- ?>
- <div class="apple">
- <?php $loop = new WP_Query(array('post_type'=>'members')); ?>
- <ul>
- <?php while ($loop->have_posts()) : $loop->the_post(); ?>
- <?php
- global $post;
- $type = get_post_meta($post->ID, 'type', true);
- if($type=='overseas')
- {
- $short_intro = get_post_meta($post->ID, 'short_intro', true);
- $phone = get_post_meta($post->ID, 'phone_ord', true);
- $website = get_post_meta($post->ID, 'website_ord', true);
- ?>
- <li>
- <span class="heading"><?php the_title(); ?></span>
- <p><?php echo $short_intro; ?></p>
- <span class="phoneWebLink"><span>Phone:</span><?php echo $phone; ?><span class="pl10">Web: </span><a href="<?php echo $website; ?>"><?php echo $website; ?></a></span>
- <a href="<?php the_permalink(); ?>">Read more</a>
- </li>
- <?php } ?>
- <?php endwhile; ?>
- </ul>
- </div><!-- //alphabetListH -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement