Mercifull
Forum Replies Created
-
Resolved. Was a simple case of a misplaced }
<?php /* Plugin Name: Matts OG:image fallback Plugin URI: http://www.frome.fm Description: Functionality plugin to add default open graph image to homepage when no featured image found. Also adds @FromeFM to a Twitter meta tag. Requires Jetpack. Code from http://jetpack.me/tag/open-graph/ Version: 0.4 Author: Matt Sims, Automattic Author URI: http://www.mattsims.com http://www.jetpack.me */ function fb_home_image( $tags ) { if ( is_home() ) { // Remove the default blank image added by Jetpack unset( $tags['og:image'] ); $fb_home_img = 'http://frome.fm/wp-content/uploads/2013/02/Vote-FFM-slider.jpg'; $tags['og:image'] = esc_url( $fb_home_img ); } return $tags; add_filter( 'jetpack_open_graph_tags', 'fb_home_image' ); } function tweakjp_custom_twitter_site( $og_tags ) { $og_tags['twitter:site'] = '@FromeFM'; return $og_tags; } add_filter( 'jetpack_open_graph_tags', 'tweakjp_custom_twitter_site', 11 ); ?>[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
I added in the code for the custom Twitter tag which did work but the custom image did not.
I tried using this code but its still using the blank image
Forum: Plugins
In reply to: [Dave's WordPress Live Search] The plugin works only if I logged-InI added this code to my functions.php. It did not solve the problem of results not showing for visitors/logged out users.
//Attempt to remove admin bar for anyone not an admin add_action('init', 'remove_admin_bar'); function remove_admin_bar() { if (!current_user_can('administrator') && !is_admin()) { show_admin_bar(false); } }Forum: Plugins
In reply to: [Dave's WordPress Live Search] The plugin works only if I logged-InNeither the main theme nor child theme contain any references to “admin”. *puzzled*
Forum: Plugins
In reply to: [Dave's WordPress Live Search] The plugin works only if I logged-InLooks like its working now. What did you do to resolve it? i have same issue
Forum: Plugins
In reply to: [Blogger Importer] Migrate Image Files Blogger WordPressI tried using the beta today and it did not work. Version 0.5 works fine at importing posts. However when I tried to run 0.6 I get the following error on the import page:
Warning: Division by zero in /…/wp-content/plugins/blogger-importer/blogger-importer.php on line 617
Pressing the [import] button does nothing.Any ideas?
Forum: Fixing WordPress
In reply to: Family Friendly Links Defaced By Adult SiteI reccomend Spam Karma 2 to stop spams
Forum: Developing with WordPress
In reply to: .htaccess/mod_rewrite failureIt was working fine until squid was installed.
Forum: Requests and Feedback
In reply to: Battlestar Wiki Blog DesignI’ve taken several of peoples comments into consideration so thanks for the input. Its the first WordPress Theme i’ve created/edited and was pleased with the result, especially in the short time it took me to do it. Its only a basic theme but then for what we use it for it doesn’t have to be.