Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • This is a major problem as far as I’m concerned. I’ve created the style for alignleft and alignnone, and added the additional !important and the text will still not wrap correctly around the image in IE7. Works great in FF.

    The css for the theme is very minimal so there isn’t an issue for something in the stylesheet to be overriding the image alignment.

    I’ve gone through the theme, and nothing pops out. This is a major problem and huge annoyance with 2.6.1.

    Thread Starter islandgirl

    (@islandgirl)

    I found the solution on how to pull the custom field value in as a variable via a custom Page template. And you are right, I didn’t explain myself well so I had reposted the question under “Passing Variable to wpostmeta.meta_value”.

    I’ll admit the problem I was having was finding the right value to pass the page id to the query. That page id is stored as the value in the posts.

    If the Page ID is 297 that number is entered in the custom field value, and the query goes an looks for all of the posts that have 297. And another page might have 303 with that value entered into the custom field.

    Thread Starter islandgirl

    (@islandgirl)

    Explanation: I have a Page template called “Special Promotions” and each hotel has its own subpage for their promotions.

    The reasoning behind the various promotions is that someone can select just the type of promotion in case they are looking for Romantic, Ski, Family, etc.

    You do need to add a custom field to the posts (mine is special_locations with the page # entered in the value field.

    <?PHP
    $thehotel = $post->ID;
    ?>

    <?php

    $querystr = “
    SELECT wposts.*
    FROM $wpdb->posts wposts, $wpdb->postmeta wpostmeta
    WHERE wposts.ID = wpostmeta.post_id
    AND wpostmeta.meta_key = ‘special_location’
    AND wpostmeta.meta_value = ‘$thehotel’
    AND wposts.post_status = ‘publish’
    AND wposts.post_type = ‘post’
    AND wposts.post_date < NOW()
    ORDER BY wposts.post_date DESC
    “;

    $pageposts = $wpdb->get_results($querystr, OBJECT);

    ?>

    Then all of the rest of the code from the codex.

    Chris

    Forum: Fixing WordPress
    In reply to: Cookie error

    I don’t know if this will help you or not, but check to see if you have accidentally blocked the site from setting cookies.

    I was having the same problem and just found out that I had somehow blocked the site. Once I deleted it I had no problems logging in.

    Chris

Viewing 4 replies - 1 through 4 (of 4 total)