Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Forum: Hacks
    In reply to: Search custom tables
    Kr0nZ

    (@kr0nz)

    Theres always a way when you have access to the source code

    But off the top of my head you would need to do a mysql join in the query that the search form uses.
    Unfortunately Ive never done a mysql join so not sure how to go about it

    Forum: Hacks
    In reply to: Search custom tables
    Kr0nZ

    (@kr0nz)

    you mean something like this?

    global $wpdb;
    $test = $wpdb->get_results(
        $wpdb->prepare("SELECT * FROM testtable"),
        ARRAY_A
    );
    foreach ($test as $testrow) {
       $therow = get_post($testrow['postid']);
       print_r($therow);
    }

    Kr0nZ

    (@kr0nz)

    the easiest way would be to host on vimeo or youtube, then embed onto your blog.
    Else i think you would need to muck about with ffmpeg

    and dont forget the bandwidth issues, which is why hosting on a dedicated video service is much better

    Thread Starter Kr0nZ

    (@kr0nz)

    I think i figured it out
    i added an action using
    add_action('init', 'ph_url_query');

    then from the ph_url_query function i have access to the $_SERVER array,
    inside this array at key ‘REDIRECT_URL’ i have my url ‘/custom/example’

    Is this the best way to go about it?

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