[wp-hackers] exporting posts by keyword

fris fris at fris.net
Sat Apr 23 12:27:37 UTC 2011


Im using the advanced exporter wordpress plugin, im trying to mod the
plugin, to let me search by keyword (titles) and it will create an export
file with only those posts.

lines altered

#37

$keyword = isset($_GET['keyword']) ? $_GET['keyword'] : 'all';

#69

ra_export_wp( $author, $category, $post_type, $status, $start_date,
$end_date, $terms , $keyword);

#115-#117

if ( $keyword and $keyword != 'all' ) {
                $where .= $wpdb->prepare("AND post_title LIKE '%s%' ",
$keyword);
        }

#366-#371 (html)

pastebin link with full code --> 

http://pastebin.com/feGPC7cQ

not sure whats going on with this.

Any input would be greatful.




More information about the wp-hackers mailing list