Open Graph for Facebook, Google+ and Twitter Card Tags - Version 0.4.2

Version Description

  • If using the "Business Directory Plugin" integration, the "og:url" tag is now correctly set in the category listing pages.
Download this release

Release Info

Developer wonderm00n
Plugin Icon Open Graph for Facebook, Google+ and Twitter Card Tags
Version 0.4.2
Comparing to
See all releases

Code changes from version 0.4.1 to 0.4.2

Files changed (2) hide show
  1. readme.txt +4 -0
  2. wonderm00n-open-graph.php +12 -3
readme.txt CHANGED
@@ -35,6 +35,10 @@ The tags that this plugin inserts are:
35
 
36
  == Changelog ==
37
 
 
 
 
 
38
  = 0.4.1 =
39
 
40
  * Added the ability to set/replace the Canonical URL tag. Very important for SEO in the "Business Directory Plugin" integration.
35
 
36
  == Changelog ==
37
 
38
+ = 0.4.2 =
39
+
40
+ * If using the "Business Directory Plugin" integration, the "og:url" tag is now correctly set in the category listing pages.
41
+
42
  = 0.4.1 =
43
 
44
  * Added the ability to set/replace the Canonical URL tag. Very important for SEO in the "Business Directory Plugin" integration.
wonderm00n-open-graph.php CHANGED
@@ -1,18 +1,18 @@
1
  <?php
2
  /**
3
  * @package Wonderm00n's Simple Facebook Open Graph Meta Tags
4
- * @version 0.4.1
5
  */
6
  /*
7
  Plugin Name: Wonderm00n's Simple Facebook Open Graph Meta Tags
8
  Plugin URI: http://blog.wonderm00n.com/2011/10/14/wordpress-plugin-simple-facebook-open-graph-tags/
9
  Description: This plugin inserts Facebook Open Graph Tags into your Wordpress Blog/Website for better Facebook sharing
10
  Author: Marco Almeida (Wonderm00n)
11
- Version: 0.4.1
12
  Author URI: http://wonderm00n.com
13
  */
14
 
15
- $wonderm00n_open_graph_plugin_version='0.4.1';
16
  $wonderm00n_open_graph_plugin_settings=array(
17
  'fb_app_id_show',
18
  'fb_app_id',
@@ -151,6 +151,15 @@ function wonderm00n_open_graph() {
151
  }
152
  }
153
  break;
 
 
 
 
 
 
 
 
 
154
  case 'main':
155
  //Main page
156
  //No changes
1
  <?php
2
  /**
3
  * @package Wonderm00n's Simple Facebook Open Graph Meta Tags
4
+ * @version 0.4.2
5
  */
6
  /*
7
  Plugin Name: Wonderm00n's Simple Facebook Open Graph Meta Tags
8
  Plugin URI: http://blog.wonderm00n.com/2011/10/14/wordpress-plugin-simple-facebook-open-graph-tags/
9
  Description: This plugin inserts Facebook Open Graph Tags into your Wordpress Blog/Website for better Facebook sharing
10
  Author: Marco Almeida (Wonderm00n)
11
+ Version: 0.4.2
12
  Author URI: http://wonderm00n.com
13
  */
14
 
15
+ $wonderm00n_open_graph_plugin_version='0.4.2';
16
  $wonderm00n_open_graph_plugin_settings=array(
17
  'fb_app_id_show',
18
  'fb_app_id',
151
  }
152
  }
153
  break;
154
+ case 'browsecategory':
155
+ //Categories
156
+ $term = get_term_by('slug', get_query_var('category'), wpbdp_categories_taxonomy());
157
+ $fb_title=esc_attr(strip_tags(stripslashes($term->name))).' - '.$fb_title;
158
+ $fb_url=get_term_link($term);
159
+ if (trim($term->description)!='') {
160
+ $fb_desc=trim($term->description);
161
+ }
162
+ break;
163
  case 'main':
164
  //Main page
165
  //No changes