joseelsantos
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: how to find ID of main page when on a sub-sub-page?Ok, I made a hybrid of another, lookalike script:
function get_root($id) { global $post, $wp_query, $wpdb; $parent = 1; while($parent) { $page_query = $wpdb->get_row("SELECT ID, post_parent FROM $wpdb->posts WHERE ID = '$id'"); $parent = $id = $page_query->post_parent; if($parent) $last = $page_query->post_parent; } return $last; } $current_page = $wp_query->get_queried_object_id(); $root_page = get_root($current_page);Forum: Fixing WordPress
In reply to: how to find ID of main page when on a sub-sub-page?Anyone found a way to accomplish this? I would really need this type of function, but I am not sure how to backtrack each page parent!
Forum: Requests and Feedback
In reply to: custom XML outputAll of you who are interested of this, please follow my development of this “Theme” on my site. I will continuously post updates and snippets from the progress, so we all can reach somewhat a unified XML Output!
Forum: Requests and Feedback
In reply to: custom XML outputI think I have found a way to make an XML Theme, the major issue will be that all of us have his / her own way of formatting XML, so the way I program this will most likeley not fit everyones pocket. However I have made it possible by editing existing plugins, combination of numerous of extra scripts, and made it to one plugin-file.
Don’t know when it will be finished, but I will let you know!
Forum: Installing WordPress
In reply to: Really weird admin navigation problemReally weird, but it worked!
Forum: Requests and Feedback
In reply to: custom XML outputThis would be really, really fantastic if it was possible without altering the core files. It would then make it the only blog / pcms that supported raw xml output!
Forum: Fixing WordPress
In reply to: Only use index.phpThank you, now it works just as I want!