crisispictures
Forum Replies Created
-
The answer has got something to do with this bit–
if ( $page->post_parent != $page->ID)
$page_tree[$page->post_parent][‘children’][] = $page->ID;dull gray brain porridge is starting to ooze out of my left ear.
Forum: Fixing WordPress
In reply to: WPDB var_dumpWell, it’s exciting, isn’t it.
I had no idea so much was going on.
now that I figured out how to use get_object_vars….
the world is mine.
Forum: Fixing WordPress
In reply to: Get Page ID numbers of children of PageThe answer:
<?php
$kids = get_pages(“child_of=$id”);?>
foreach ($kids as $post) {
$kinder = get_object_vars($post);
$kinder = $kinder[ID];
} ?>Forum: Plugins
In reply to: Creating a new post without using admin.phpThanks.
so i know what i’m looking for:
What part of the query crates the post-slug, custom metatags excerpt fields?
Forum: Fixing WordPress
In reply to: I am frustrated beyond belief!it did work.
yes, yes it did.
i didn’t really understand php syntax– i was putting string variables inside single quotes.
Forum: Fixing WordPress
In reply to: Get the content by post idYep.
It worked.
btw.
to post on a file other than index.php
put this in whatever.phpdefine(‘WP_USE_THEMES’, false);
require(‘./wp-blog-header.php’);Forum: Plugins
In reply to: Slideshow plugin firefox is weirdduh.
display:block
Forum: Fixing WordPress
In reply to: I am frustrated beyond belief!yea.
read it.
doesn’t solve my problem, sadly.
Forum: Fixing WordPress
In reply to: I am frustrated beyond belief!Thanks a LOT for looking at this. I’m on day two of quitting smoking. you may save a life.
This is for a single post page. (single.php)
The categories i’m concerned with are structured like this:
News
Region (ie: n america, s america, middle east etc)
CountrySo, let’s say I have a story from Bahrain.
That would be News > Middle East > Bahrain.
What i’d like to do is at the same time show the titles five most recent posts from Bahrain in an unordered list.
I’m using lots of fiddly custom metatags on my page, which makes it hard to do one loop for the single post and then another for the 5 previous posts.
I’m stumped.