Forum Replies Created

Viewing 3 replies - 16 through 18 (of 18 total)
  • Hello turnerm,

    What has happened is that the site_url and home_url in the database is still set to your old domain. You will need to update these fields to correct the problem. Here is a link to the WordPress codex to guide you through the process. Let me know how it works out for you

    http://codex.wordpress.org/Changing_The_Site_URL

    Thread Starter BenjaminRMueller

    (@benjaminrmueller)

    I ended up finding the answer while searching through tutorials and in case anyone needs the answer I thought I would throw it in here (I hate when people find an answer to something on a forum but never post the answer haha)

    What I ended up doing is just using GET to pull the page from the URL and then recreated the link and just added the variable information I need to pass.

    Since code speaks louder then words in the development community here is an excerpt from my code…

    $id = $_GET['id'];
    
    $table_name = $wpdb->prefix . "INPUT TABLE NAME HERE";
    
    if (!empty($id)) {
    $query = $wpdb->get_results("SELECT * FROM $table_name WHERE id='$id'");
    } else {
    $query = $wpdb->get_results("SELECT * FROM $table_name");
    }
    
    foreach ($query as $the_item) {
    print '<a href="?page=' . $_GET['page'] . '&id=' . $the_item->id . '">Edit</a>';
    }

    The id field is dynamically filled from the database query and once that “Edit” link has been clicked it pulls only the information for that entry. From here I can now manipulate only that entry’s data and configure it any which way I desire.

    If anyone has any suggestions on a better way to do this or questions for that matter just let me know.

    Thanks!

    My suggestion would be to use the RSS Feed that is generated by the WordPress site and parse the data using PHP. I am not sure if you have experience working with PHP but this will be the easiest way to do what you need. You can probably display the whole post or just create an excerpt of the post.

Viewing 3 replies - 16 through 18 (of 18 total)