joel@ahso
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: wp_head() outputting just before opening tag.oh awesome,
well don’t i feel silly.it still makes me wonder why it was dumping all my page_specifics() content into the body tag tho.
no worries, better to feel silly and have it working, i have to confess i keep forgetting that the validator is an excellent bug-hunter.
now i just have to figure out why the is_page() with an array of page slugs in it isn’t returning true.
thx again Rev!
can has a good one!Forum: Fixing WordPress
In reply to: trouble with is_page(array()) not working in functions.phpstill no love, huh. wicked.
Hmm, well, for whatever reason i seem to be cursed with being that guy who gets to answer his own forum posts. Good times, good times.
SO i went and got one of my instructors from Art Institute to help me out.
He showed my how WP handles its raw DB queries,from that , i was able to back up and use some WP to query the DB ‘properly’,
but here’s the rub, once i get that query back, i need to loop thru the results and display the permalink of each returned result.this will make sense in a minute.
so what i’m doing in the meantime (which makes my inner dev cringe)
is a number of sub loops, each with a new WP_query,
then building the menu item i need.So i;m still looking for a better way to do this, because there is always a better way, right? well, not when the client needs it yesterday, but for my own sanity and experience.
if you’re bored: http://wordpress.pastebin.com/PU17xeJm
Good Luck to anyone else with this problem. If i ever streamline the thing i’ll post it here.
i can get a better WP_query with all the post_types and same name in it,
$thisname = $post->post_title;
$my_freakin_query = new WP_query(array('post_type' => array('portfolio','bio','multimedia','red-carpet'),'post_title' => '$thisname'));
but am having trouble looping thru the results and displaying the permalink for each