Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter daveshu1

    (@daveshu1)

    This is very, very weird.

    I just as an experiment tried changing the slug from:

    the-name to the-name-page & it started working.

    Change it back again to the-name and it stops working again.

    I guess that I am happy to live with this fix, but being a curious kind of a guy I’d love to understand why it’s doing this.

    Any ideas anyone?

    Thread Starter daveshu1

    (@daveshu1)

    PS – I just noticed (if this makes any difference) that all of the working categories give me the address:

    url/folder/category/the-name

    this one has an extra slash on the end in this format:

    url/folder/category/the-name/

    ??

    Thread Starter daveshu1

    (@daveshu1)

    PS – it works perfectly when csv is uploaded from the URL submission box, just not from within the admin panel.

    Also, the URL method has the php file stored in wp-admin, whilst the plugin attempt is in wp-content/plugins

    If any of that makes a difference?

    Thread Starter daveshu1

    (@daveshu1)

    Hmmmm….

    although there is one other small thing ??

    I decided to try & make it work from inside the admin panel as a plugin rather than from a url, and I’m a bit stuck on this.

    I’ve managed to get it as far as being recognised as a plugin that I can activate, and I’ve got an options page where I have a small form box where I can select my csv file.

    Only thing is when I press the “upload” button I get a white screen & it only uploads the first item on the csv.

    I’m guessing it’s just my poor php again, this is what I have at the form bit, I’m guessing its the 3 lines with the bold “echos” if anyone can help with this bit please – then I’ll be a really happy bunny ?? :

    function testcsv_plugin_page() {
    echo ‘<div class=”wrap”>’;
    echo ‘<h2>csvtest</h2>’;
    echo ‘<form enctype=”multipart/form-data” action=”” method=”POST”>’;
    echo ‘<input name=”uploaded” type=”file” class=”formbox1″ />’;
    echo ‘<input type=”submit” value=”Upload” class=”button” />’;
    echo ‘</form>’;
    echo ‘</div>’;
    }
    add_action( ‘admin_menu’, ‘testcsv_plugin_menu’ );
    ?>

    Thread Starter daveshu1

    (@daveshu1)

    filosofo – you are a genius!!

    Thankyou, thankyou, thankyou for your input, it now works beautifully!!!

    I can’t thankyou enough, but I’ll just say thank you once again just to make sure I’m at least trying!!

    Cheers!!

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