• Ok guys so i’m currently trying to work on a testimonial system but i have not the slightest clue about how to go about the image upload part.

    Basically all i want is the ability to click on upload/select media file, then the script just needs to parse the url of that image into a saved variable to change the image that would appear from that variable

    I have followed countless tutorials on it all but nothing seems to work and every tutorial seems pretty dated, any help would be greatly appreciated, also so far this is what i’ve got in terms reference to what could be wrong and such.

    <?php
    /* Plugin Name: Matts Testes
    Plugin URI: http://www.noneedtosleep.co.uk/
    Description: Matthews Amazing Testimonial System
    Version: 1.0
    Author: Matthew Artiman
    Author URI: http://www.noneedtosleep.co.uk/
    License: GPLv2 or later
    */
    ?>
    
    <?php
    add_action('admin_menu', 'testes_options'); 
    
    function testes_options()
    {
        add_menu_page('Testimonials Options', 'Testimonials Options', 'manage_options', 'functions','testimonials_options');
    }
    ?>
    
    <?php
    function testimonials_options()
    {
    ?>  
    
        <div class="wrap">
            <h2>Testimonials Options</h2>
            <form method="post" action="options.php">
                <?php wp_nonce_field('update-options') ?>
                <p><strong>Testimonials</strong><br />
                Testimonial 1<br />
                    <input type="text" name="testimonial_one" size="65" value="<?php echo get_option('testimonial_one'); ?>" />
                </p> 
    
                <p><input type="submit" name="Submit" value="Store Options" /></p>
                <input type="hidden" name="action" value="update" />
                <input type="hidden" name="page_options" value="testimonial_one" />
            </form>
        </div>
    <?php
    }
    ?>

    Thank you

    Kind Regards
    ~Matt

  • The topic ‘Media Uploader URL Grab’ is closed to new replies.