Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter kcb212003

    (@kcb212003)

    More specifically when I use feature image its creating a header image out of that photo. Any one know how to stop WordPress from creating the extra header image?

    When I upload a picture this is what I get.
    – Original photo.
    – Header photo is created.
    – thumb of that photo.

    and I just need:
    – Original photo.
    – thumb of that photo.

    No extra header photo made.

    Thread Starter kcb212003

    (@kcb212003)

    SOLVED!!!

    I should have seen it. Fix code is below if anyone needs it…

    <?php
    $t_title=get_the_title();
    $con = mysql_connect(“localhost”,”********”,”********”);
    if (!$con)
    {
    die(‘Could not connect: ‘ . mysql_error());
    }
    mysql_select_db(“********”, $con);
    $result = mysql_query(“SELECT * FROM ******* WHERE *******=’$t_title'”);
    echo “<table border=’1′>
    <tr>
    <th>F</th>
    <th>L</th>
    </tr>”;
    while($row = mysql_fetch_array($result))
    {
    echo “<tr>”;
    echo “<td>” . $row[‘******’] . “</td>”;
    echo “<td>” . $row[‘******’] . “</td>”;
    echo “</tr>”;
    }
    echo “</table>”;
    mysql_close($con);
    ?>

    Thread Starter kcb212003

    (@kcb212003)

    or is there an other way to pull data from a different SQL database by using the post tile? something like <?php the_title(); ?> and it looks through the table for that title-id and echos the appropriate column (like description etc..)

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