Category Archives : wordpress

Bring up Amazon Product WordPress Blog with Facebook Page and AutoPost and Stuff

1. put the following in wp-blog-header.php to suppress warnings rendered on page ini_set(‘error_reporting’, E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED); 2. google anlytics 3. google ads, e.g. create channels, ad units, and put in wks.php.  Update theme’s php files (e.g. sidebar.php, single.php, page.php, index.php) 4. google webmaster 5. install plugins: iframe, og, Amazon Product In […]

Custom rss for wordpress

1. make feeds refresh (otherwise it seems cached); in wp-content/themes/ready-review/functions.php, add at the end: add_filter( ‘wp_feed_cache_transient_lifetime’, create_function(‘$a’, ‘return 1;’) ); //1 is timeout value   2. edit wp-includes/feed-rss2.php Go to where it has the description tag and make changes accordingly.  Make sure in wp-admin -> settings -> reading -> For each article in a feed, show, you […]

WordPress autopost

Download redstone xml rpc from source forge: Set classpath to include the jar file. Enable rpc at  http://<wordpress site>/wp-admin/options-writing.php compile and run the following code: import redstone.xmlrpc.XmlRpcClient; import java.util.HashMap; public class XmlRpcPoster { public static void main( String[] args ) { // Check command-line arguments if( args.length < 3 ) { System.out.println( “Usage: java XmlRpcPoster […]