<ul>
<?php wp_list_pages('exclude=6,53,12,13,10,11,9,7,15,14' ); ?>
</ul>
But the results displays:
Pages
Contact
Who we are
How can I do for not display Pages in the results of my query?
Thanks a lot
Posts would work as well. I just want to have several different pages content display in them. Is this possible?
]]>I tried using this code…
<div class="maincontent">
<?php the_ID(); ?>
<?php $parent = $post->ID; ?>
<?php
query_posts('post_type=page&post_parent='.$parent);
while (have_posts()) : the_post();
?>
<div class="imagelisting">
<div class="Image">
<?php $image = get_post_meta($post->ID, 'vendor_img', true); ?>
</div>
</div>
<?php endwhile; ?>
</div>
but i receive an error message which you can see here on the parent page where i’m trying to get the child page info to appear in the list.
should I be placing a parent PAGE category name or id somewhere in that code? is the problem something else?
please advise. thanks in advance!
]]>query_posts(‘pagename=’);
to do this. I have found it quite useful but have been weary to push it too far as I have been wondering about the SEO impact of this as each “content area” created this way exists as a page on it’s own creating duplicate content across the site.
Any suggestions or comments? I can’t see having multiple content, especially if duplicated on same page (picture About page with the About content also in the footer) as being anything but bad.
Is there any way of creating post types that aren’t “published” but can still be queried as areas of pages?
]]>I am using a star rating plugin to rate my posts and pages. I now want to display the top rated, but it seems as though the WP query function is not returning pages, only posts.
Is there a way to work around this?
Thanks
]]>I’m new to Word Press but already enjoying the custom features of it. My question is how do I modify the wp_list_pages to not give a list of the pages prefixing them all with <li class="page_item...">
I essentially want to replace:
<li class="page_item page-item-2"><a href="https://server1/site2/?page_id=2" title="About">About</a></li>
<li class="page_item page-item-3"><a href="https://server1/site2/?page_id=3" title="Contact Us">Contact Us</a></li>
with
<div class="mydiv"><a href="https://server1/site2/?page_id=2" class="myhrefclass" title="About">About</a></div>
<div class="mydiv"><a href="https://server1/site2/?page_id=3" class="myhrefclass" title="Contact Us">Contact Us</a></div>
Any idea on how to do this?
]]>