Mort
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Why does the Loop ONLY work on one page?so the inline posts plugin? that just display’s specific posts right? I cant have the loop work? Im trying to run different queries on different pages
Forum: Fixing WordPress
In reply to: using templates for specific pagesohh see it was showing up at first, I had to add that
/*
Template Name: NAME
*/to any file I wanted to use as a template before that template option was visible.
Forum: Fixing WordPress
In reply to: wpdb and wildcards! need help almost done with project!OMFG Im an IDIOT. I had already found the answer (the %%) but I dont know why I took the LIKE out and put an equal sign there. UGH thanks
Forum: Fixing WordPress
In reply to: query_posts using multiple fields and valuesAWESOME! Ok I almost have it. For some reason tho, I get no results when I add something like this
AND post_id IN (SELECT post_id
FROM wp_postmeta
WHERE ( meta_key = ‘Utilities’
AND meta_value = ‘%Water%’ ))works fine from terminal, but not from the code you linked me to. As long as thats not in there I get search results, but as soon as I add that line (or another for a different key/value) I get nothing even tho I know the entry exists.
Forum: Fixing WordPress
In reply to: query_posts using multiple fields and valuescooool. I just started learning SQL but Ive got enough down for my query…
where do I put this part tho?:
if ($postids) { echo 'List of ' . $meta_key3_value . '(s), sorted by ' . $meta_key1 . ', ' . $meta_key2; foreach ($postids as $id) { $post=get_post(intval($id)); setup_postdata($post);?> <p><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></p> <?php } } ?>in the loop?