xhan
Forum Replies Created
-
Forum: Themes and Templates
In reply to: List SubPages on top Level PageThis code works now ??
<?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <?php $pages = get_pages('child_of='.$post->ID.'&sort_column=post_date&sort_order=desc&parent='.$post->ID); $count = 0; foreach($pages as $page) { $content = $page->post_content; ?> <div class="item"> <h1 class="title"><a href="<?php echo get_page_link($page->ID) ?>"><?php echo $page->post_title ?></a></h1> <?php echo $content ?> </div> <?php } ?> <?php endwhile; ?> <?php endif; ?>
Forum: Themes and Templates
In reply to: List SubPages on top Level Pageooh I can get it to display the correct page id now but the code doesn’t work!
<?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <?php echo $post->ID; ?> <?php $pages = get_pages('child_of='.$post->ID.'&sort_column=post_date&sort_order=desc'); $count = 0; foreach($pages as $page) { $content = $page->post_content; if(!$content) continue; if($count >= 2) break; $count++; $content = apply_filters('the_content', $content); ?> <h1 class="title"><a href=\"<?php the_permalink(); ?>\"><?php the_title(); ?></a></h1> <?php the_content(); ?> <?php } ?> <?php endwhile; ?> <?php endif; ?>
Forum: Themes and Templates
In reply to: List SubPages on top Level PageThe problem is that it doesn’t know the page id.
global $post; echo $post->ID;
returns 1 on all the pages.
Forum: Themes and Templates
In reply to: List SubPages on top Level PageGah, the “Displaying Child pages of the current page in post format” would be idea if it worked!! woe.
Forum: Themes and Templates
In reply to: making a functionthank you so much michael!
I need to be able to display all active projects at once but they wont always be the most recent pages. that was the only way i could think of!
Forum: Fixing WordPress
In reply to: Wp-O-MatiC Cron Problemhey – can you tell me how you fixed your problem? I can’t get cron to work either!
Forum: Fixing WordPress
In reply to: Links and Archives Pages wont display!?The links now work – I had two links pages in WP but the archives still has no joy!
Forum: Fixing WordPress
In reply to: Links and Archives Pages wont display!?My links page now consists of this but still no links displaying!
<?php /* Template Name: Links */ ?> <?php get_header(); ?> <div class="title">Links</div> <div class="post"> <ul> <?php get_links_list(); ?> </ul> </div> <?php get_footer(); ?>
Forum: Fixing WordPress
In reply to: Links and Archives Pages wont display!?ooo professional.
(removing what formatting?!)
No you haven’t. You’ve been thoroughly unhelpful and condescending.
I want to make a links.php page to display links and an archives.php page to display archives, how posts come into it I have no clue.
I’ve looked at the default themes WP ships with theres no mention of the loop in them, I’ve also downloaded several other themes and again no loop.
So just tell me – how do I make an archives/links page that works.
Forum: Fixing WordPress
In reply to: Links and Archives Pages wont display!?I want it to display links/archives not posts – capitalising things makes you sound really patronising you know.
Forum: Fixing WordPress
In reply to: Links and Archives Pages wont display!?so how come the default links.php doesn’t have any loop text in it? or the archives.php for that matter.
I’ve added the loop – still no joy.
Forum: Fixing WordPress
In reply to: BAstats Wrong Datatypehmm it does it regardless of URL now!
Forum: Plugins
In reply to: WordPress as a photo blog?I use flickr to host the images rather than wp’s clumsy handling of photos.
Although a feature similar to pixelposts ‘post x amount of time after last post’ would be SO usefu1! Actually – it’d be useful for everyone!
Forum: Fixing WordPress
In reply to: Email Injection Issue – Is there a fix yet?Something/one is sending out over £200 emails an hour and all my host has told me to do is https://www.securephpwiki.com/index.php/Email_Injection go there.
I’m having to pay for the trouble this is causing me, and I really can’t afford to do that.
Any help would be really really appreciated, I’d even settle for a way to permanatly stop emails being sent from wordpress.