tirion
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Cached Theme Files WeirdnessJust to confirm…
Changes made to header.php using wp-admin on the local server, are immediately visable from a remote machine also using wp-admin.
But the changes are not written to the actual header.php file. So where on earth is WordPress storing the changes, to allow them to be visable on a remote machine, without actually changing the contents of the local copy of header.php?
Forum: Fixing WordPress
In reply to: Date related SQL query, assistance required ;)Thanks for the advice ??
I’ve actually solved this now using a DB query, yay for Google ??
$results = $wpdb->get_results("SELECT guid, post_excerpt FROM wp_posts, wp_term_relationships WHERE object_id = ID AND term_taxonomy_id = 1 AND YEAR(post_date) = 2009 AND MONTH(post_date) = 1");
This works for me:
global $wpdb; $results = $wpdb->get_results("SELECT * FROM wp_posts, wp_term_relationships WHERE object_id = ID AND term_taxonomy_id = 1")
The “term_taxonomy_id” is the category number.
Forum: Fixing WordPress
In reply to: Cannot edit theme on version 2.8I don’t suppose anyone has found a fix or workaround for this yet? ??
Other than editing locally and FTPing the files of course…
Forum: Plugins
In reply to: [Plugin: SB Child List] Does the trickHi, thanks Sean ??
I actually managed to figure it out in the end through trial and error, I ended up with:
foreach ($children as $i=>$child) {
if ($child->post_type == ‘post’) {
$p = get_post($child->ID);
$linktitle = get_post_meta($child->ID, ‘Link’, $single = true);
} else if ($child->post_type == ‘page’) {
$p = get_page($child->ID);$linktitle = get_post_meta($child->ID, ‘Link’, $single = true);
}if ($p) {
$return .= $settings->child_list_loop_start;
$template = $settings->child_list_loop_content;
$template = str_replace(‘[post_title]’, $linktitle, $template);Not elegant, but it works ??
Forum: Plugins
In reply to: [Plugin: SB Child List] Does the trickHi Sean, the plugin is working great for me on 2.7. I’m trying to make child pages link with their Custom Field instead of the Page Title, as in grab the ‘Link’ Custom Field contents and use that for each link title.
How hard do you think that would be? ??
Thanks, Dan.
Forum: Fixing WordPress
In reply to: List custom fields of child pages… driving me slowly insane…To narrow this down even further, it would seem this:
$id = 120; get_posts('post_parent=&id')
Gives a different result to this:
get_posts('post_parent=120')
I can’t see any logical reason why! Why does using a variable instead of just typing the number in change the output?? ??
Forum: Fixing WordPress
In reply to: List custom fields of child pages… driving me slowly insane…Hmm, another thing I’ve noticed…
Using post_parent=$post->ID also displays the actual parent page (120) in the list, whereas post_parent=120 does not.
Still just as confused ??