• Resolved jordan8201

    (@jordan8201)


    I have a database with a few hundred devotions that I would like to start using on my WordPress page. I am hoping not to have to copy and paste each of them into my WordPress page. Is there a way to somehow merge the two? Thank you very much!

Viewing 7 replies - 91 through 97 (of 97 total)
  • Easy enough, just had to adjust the sidebar array..

    functions.php at the top, replace it with…

    if ( function_exists('register_sidebar') )
        register_sidebar(array(
            'before_widget' => '',
            'after_widget' => '</div>',
            'before_title' => '<div class="archives">',
            'after_title' => '</div><div class="archivesborderline">',
        ));

    So find this..

    if ( function_exists('register_sidebar') )
        register_sidebar(array(
            'before_widget' => '<li id="%1$s" class="widget %2$s">',
            'after_widget' => '</li>',
            'before_title' => '<h2 class="widgettitle">',
            'after_title' => '</h2>',
        ));

    and replace it with the first piece of code (making sure not to delete the <?php bit that is before the code)

    Is that better?

    Thread Starter jordan8201

    (@jordan8201)

    Beautiful! I just realized that the devotion is not correct. I realized when the devotion for today was the same as yesterday, even though the date is correct. The title, “Life Is Like a Vapor” is the first devotion in the database. It was working, so I did not notice when it stopped working so we could know exactly what change caused it to stop pulling from the correct entry in the database.

    Check this line in the devotions file.
    WHERE RecordNum != '.$n.' LIMIT 1

    I use the ! for testing, i’ve been careful to change this before providing any code but it may have slipped through…

    If it matches above, change to..
    WHERE RecordNum = '.$n.' LIMIT 1
    ..basically just removing the !

    Thread Starter jordan8201

    (@jordan8201)

    That was it! I guess I am not going to be able to stump you. Can I keep you on speed dial?? ??

    I had a sneeking feeling i’d make that mistake at one point or another, i’m just thankful it was that simple… ??

    Feel free to mark the topic resolved if you’re satisfied… ??

    If you get stuck with a future problem and you don’t get any responses, you’re welcome to give me a shout on my site, just click on my name for the link.

    ??

    Thread Starter jordan8201

    (@jordan8201)

    It is bookmarked! Thank you so much for all of your help! You are a very patient person! I really appreciate it!

    No worries, you’re welcome.. ??

Viewing 7 replies - 91 through 97 (of 97 total)
  • The topic ‘Merging from another database’ is closed to new replies.