Tag Archives: wordpress

WordPress: Get all terms for a post

First you need to get the available taxonomies so that you can pass them to the wp_get_object_terms function to get all of the terms / categories / tags / custom tax terms associated with a single post: $taxonomies = get_taxonomies(”,’names’); print_r($taxonomies); //optional for debugging That will likely return something like this: Array ( [category] => category [post_tag] => post_tag [nav_menu] => nav_menu [link_category] => link_category [post_format] => post_format [product_type] => product_type [product_cat] => product_cat [product_tag] => product_tag [product_shipping_class] => product_shipping_class [shop_order_status] => shop_order_status ) Next you can use the wp_get_object_terms function, passing the post’s ID(s) and the list of taxonomies to get all of the terms associated: global $post; //optional if you are inside the “loop” $terms = wp_get_object_terms($post->ID,$taxonomies); print_r($terms); //optional for debugging Array ( [0] => stdClass Object ( [term_id] => 2 [name] => Blogroll [slug] => blogroll [term_group] => 0 [term_taxonomy_id] => 2 [taxonomy] => link_category [description] => [parent] => 0 [count] => 7 ) [1] => stdClass Object ( [term_id] => 14 [name] => Lightweight [slug] => lightweight [term_group] => 0 [term_taxonomy_id] => 14 [taxonomy] => product_cat [description] => [parent] => 0 [count] => 1 ) [2] => stdClass Object ( [term_id] => 15 [name] => tag1 [slug] => tag1 [term_group] => 0 [term_taxonomy_id] => 15 [taxonomy] => product_tag [description] => [parent] => 0 [count] => 1 ) [3] => stdClass Object ( [term_id] => 5 [name] => simple [slug] => simple [term_group] => 0 [term_taxonomy_id] => 5 [taxonomy] => product_type [description] => [parent] => 0 [count] … Continue reading

Posted in Web Development | Tagged , , , | Leave a comment

Inboundwriter Pricing

Inboundwriter: Register Your Plugin / Choose Pricing for Inbound Writer Step 1 of 3: Choose a plan Premium - $19.95 per month Plan I: Unlimited use (Premium) Unlimited use Topic and keyword research Topic and keyword research Search popularity optimization Search popularity optimization Search competition optimization Search competition optimization Reader targeting optimization Reader targeting optimization Ad revenue optimization Opt-out of promotional badge Basic - FREE Topic and keyword research Topic and keyword research Search popularity optimization Search popularity optimization Search competition optimization Search competition optimization Reader targeting optimization Reader targeting optimization Ad revenue optimization Supported by Inboundwriter promotional badge Displayed with your content As featured in: Tech Crunch ReadWriteWeb Information Week Search Engine Watch B to B

Posted in Social Media, Software, Web Development | Tagged , , , , | Leave a comment

How to Reset WP to Twitter

The WordPress plugin WP to Twitter “posts a Twitter status update when you update your WordPress blog or post to your blogroll, using your chosen URL shortening service. Rich in features for customizing and promoting your Tweets.” You can activate the plugin and then set all the options, but if you are having trouble the plugin offers no way to unset all of the options associated with it. You can use the following sql / mySQL command to remove all of the options generated by this plugin. Use this at your own risk, and of course create a backup of your database before attempting this. delete from wp_options where option_name in (‘app_consumer_key’, ‘app_consumer_secret’, ‘bitlyapi’, ‘bitlylogin’, ‘comment-published-text’, ‘comment-published-update’, ‘disable_oauth_notice’, ‘disable_twitter_failure’, ‘disable_url_failure’, ‘jd_date_format’, ‘jd_donations’, ‘jd_dynamic_analytics’, ‘jd_individual_twitter_users’, ‘jd_keyword_format’, ‘jd_last_tweet’, ‘jd_max_characters’, ‘jd_max_tags’, ‘jd_post_excerpt’, ‘jd_replace_character’, ‘jd_shortener’, ‘jd_status_message’, ‘jd_strip_nonan’, ‘jd_tweet_default’, ‘jd_twit_append’, ‘jd_twit_blogroll’, ‘jd_twit_custom_url’, ‘jd_twit_prepend’, ‘jd_twit_remote’, ‘limit_categories’, ‘newlink-published-text’, ‘oauth_token’, ‘oauth_token_secret’, ‘suprapi’, ‘suprlogin’, ‘tweet_categories’, ‘twitter-analytics-campaign’, ‘twitterInitialised’, ‘use-twitter-analytics’, ‘use_dynamic_analytics’, ‘use_tags_as_hashtags’, ‘wp_bitly_error’, ‘wp_debug_oauth’, ‘wp_supr_error’, ‘wp_to_twitter_version’, ‘wp_twitter_failure’, ‘wp_url_failure’, ‘wpt_inline_edits’, ‘wpt_post_types’, ‘wtt_oauth_hash’, ‘wtt_twitter_username’, ‘wtt_user_permissions’, ‘yourlsapi’, ‘yourlslogin’, ‘yourlspath’, ‘yourlsurl’)

Posted in Social Media, Tech Tips, Web Development | Tagged , , , | Leave a comment

Remove WooCommerce Generator Tag

If you would like to remove the Remove WooCommerce Generator Tag from the <head> section of your WordPress installation, you can add the following line somewhere, perhaps in your wordpress functions.php file: remove_action(‘wp_head’, array($GLOBALS['woocommerce'],’generator’)); I’ve updated the code to work with the most recent version of Woo Commerce, try adding this to the functions.php file of your WordPress theme: function remove_woo_commerce_generator_tag() { remove_action(‘wp_head’,array($GLOBALS['woocommerce'], ‘generator’)); } add_action(‘get_header’,'remove_woo_commerce_generator_tag’); That will prevent the following line from being shown in your HTML code: <!– WooCommerce Version –> <meta name=”generator” content=”WooCommerce 1.5″ />

Posted in Security, Tech Tips, Web Development | Tagged , , , , | 2 Comments

iPower: The server encountered an unexpected condition which prevented it from fulfilling the request.

iPower: The server encountered an unexpected condition which prevented it from fulfilling the request. If you’re getting this error on iPower you need to enable CGI / scripts. Sometimes your account will show you that this is enabled, even if it is not. Contact iPower support to get them to resolve it for you. Even if in your control panel homepage CGI / PHP is showing up as active, click on the server configuration tab and you probably will see that CGI is in fact inactive:

Posted in Server Admin, Server Administration, Web Development | Tagged , , , , , , | Leave a comment

Install WordPress on Linux in 5 Seconds

WordPress is available on WordPress.org in two formats, .zip and .tar.gz: I wanted an option to download and extract WordPress as easily as possible. I had looked for a way to do this with the zip format but apparently Archives read from standard input are not yet supported, except with funzip (and then only the first member of the archive can be extracted). (source So, my solution was to use WordPress’ latest.tar.gz file and pipe it (stdin/stdout). Running the following command will create a wordpress folder in your current working directory with all files: wget -O – http://wordpress.org/latest.tar.gz | gzip -c -d | tar -x Notes: wget -O – //send output to stdout, use – before the URL gzip -c -d //read from stdin, decompress tar -x // extract, could probably also use -v to verify

Posted in Linux, Tech Tips, Web Development | Tagged , , , , , , , , , , | Leave a comment

14 Most Popular Woo Themes

Backstage A powerful niche theme design for musicians and artists showcasing their media, upcoming shows and music using hugely flexible custom widgets and audio players. This beautifully crafted layout was designed by Elliot Jay Stocks and boasts 7 alternate styles. Live demo – Read more Biznizz Built on WooThemes own winning formula, Biznizz will give your website a fresh new look. Its integrated slider and custom homepage layout, in addition to the optional portfolio page template, makes Biznizz a great candidate for your next business website. Live demo – Read more Caffeinated This personal portfolio theme by Ryan Downie was originally designed for his own personal use – fueled by his passion for Coffee, Red Bull and lunchtime pot of noodles according to his Twitter stream. It’s perfect for anyone wanting a bold design to show off their work. Live demo – Read more City Guide This theme was developed to cater for directory-based WordPress sites. For example, a guide to a city with shops, restaurants and other places of interest all archived in posts with geo-tags, custom content about the locations, and well presented in this killer theme designed by Sam Brown. Live demo – Read more Continuum A Magazine theme which features a custom homepage, custom typography and some extra custom widgets, all to help your news/magazine website get a stylish and functional look. Designed by Simon Collison. Live demo – Read more Crisp Designed by Tyler Galpin, and boasting all-new tumblog functionality with a quick publishing form on the dashboard Crisp is perfect for lazy bloggers who … Continue reading

Posted in Design, Tech Tips, Web Development | Tagged , , , , | 1 Comment

WordPress: SQL to get all Categories

If you’re trying to get all categories in WordPress with a real, raw, mysql sql statement, this is the type of query you can use: SELECT * FROM wp_term_relationships LEFT JOIN wp_term_taxonomy ON (wp_term_relationships.term_taxonomy_id = wp_term_taxonomy.term_taxonomy_id) WHERE wp_term_taxonomy.taxonomy = ‘category’ GROUP BY wp_term_taxonomy.term_id This is how you can get posts of a certain category / taxonomy. I have a few extra lines commented out that could also be used: SELECT * FROM wp_posts LEFT JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) LEFT JOIN wp_term_taxonomy ON (wp_term_relationships.term_taxonomy_id = wp_term_taxonomy.term_taxonomy_id) WHERE 1 #AND wp_term_taxonomy.taxonomy = ‘category’ AND wp_term_taxonomy.term_id IN (13) #AND wp_term_taxonomy.term_id IN (1,2,3,4,5,6,7) GROUP BY wp_posts.ID ORDER BY ID

Posted in Social Media, Tech Tips, Web Development | Tagged , , , , , | Leave a comment

Complete List of Woo Commerce Themes

Sentient Whitelight Whitelight Commerce Unsigned Shelflife Olya Sliding Beveled Buro Commerce Empire Commerce Briefed Commerce Wikeasi Currents Emporium Kaboodle Commerce Inspire Commerce Bizznizz Commerce Teamster Argentum Canvas Commerce Simplicity Commerce Statua Commerce Woostore Coquette Buro Announcement Empire SupportPress Editorial Statua Briefed FaultPress Kaboodle Saving Grace Premiere Simplicity Delicious Magazine Listings BoldNews Biznizz Auld Listings Elefolio Chapters Continuum Diner Caffeinated Crisp Sealight Unite Estate Coda Inspire Apz Spectrum Diarise Boast Retreat City Guide Slanted Cinch Canvas Postcard Delegate MyStream Optimize Backstage SophisticatedFolio Digital Farm Headlines Royalle f0101 Exposure Therapy Daily Edition Object Antisocial Coffee Break Mortar Big Easy Groovy Photo Groovy Blog Feature Pitch Suit and Tie The Journal myweblog Aperture Bloggingstream The Station Groovy Video Productum Newsport Cushy WooTube Foreword Thinking Geometric Abstract Busy Bee Gotham News THiCK Over Easy Ambience Open Air Fresh Folio Paper Cut VibrantCMS ProudFolio Fresh News Live Wire Gazette Flash News NewsPress

Posted in Design, Web Development | Tagged , , , , | Leave a comment

Canvas Commerce psd

The WooTheme “Canvas Commerce” photoshop psd files is not listed in the downloads section of the WooThemes member area: It is unclear why no PSD files are included for download, however, this is actually the case for several of the Woo Commerce themes including: Kaboodle Commerce PSD Inspire Commerce PSD Bizznizz Commerce PSD Canvas Commerce PSD Simplicity Commerce PSD Statua Commerce PSD

Posted in Design, Web Development | Tagged , , , , , , | Leave a comment