• Hi,
    I have a page here here that pulls in the last 10 posts from 2 of my blogs.
    The titles have slashes in them. It’s not the WP code, but the code I used to pull them in. I think.
    Here’s the code:
    Last 10 recipes:

    <?php $wpcook = $wpdb->get_results("SELECT ID, post_title FROM wpcookposts WHERE post_status = 'publish' order by post_date desc limit 10");
    foreach ($wpcook as $v) {
    echo "
    ID."'>" . $v->post_title . "
    "; } ;?>
    Any help in getting rid of the slashes would be great. I tried to put stripslashes in the code, but no luck.
    Thanks,
    Sara 🙂

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

The topic ‘Question about code’ is closed to new replies.