Nick C
Forum Replies Created
-
Forum: Reviews
In reply to: [Genesis Simple Share] Wish we could disable share countsThanks for your review, Mark. Disabling counts is something our development team hopes to offer, but I don’t yet have a timeline. Thanks for your feedback on this!
Forum: Plugins
In reply to: [Genesis Simple Share] FB and LinkedIn sharing wrong page titleWell done, @felippe90. Thanks for letting us know!
Forum: Plugins
In reply to: [Genesis Simple Share] FB and LinkedIn sharing wrong page titleHi, @felippe90.
Social networks look for “Open Graph” tags to determine what image and title to use.
You can use a plugin such as Yoast SEO or Open Graph to enable those tags on your posts.
If you’re already using Open Graph and not seeing the correct image or title, please could you link to the page you’ve been trying to share?
Forum: Plugins
In reply to: [Genesis Simple Hooks] How To Align Ad In Center ?You’re welcome, and well done for solving this!
Forum: Plugins
In reply to: [Genesis Simple Hooks] How To Align Ad In Center ?Hi, @raj_99. I already see a centred ad in your header at http://www.mobilerechargetricks.com/.
For me it looks like this:
If you needed help with another site instead, feel free to share a link to it.
Forum: Plugins
In reply to: [Genesis Simple Share] Share Counts Zeroed Out after Updates@graywolf It looks as though your site is still caching an older version of the plugin’s JavaScript file; I see the old Facebook share URL in the source at http://graywolfsurvival.com/wp-content/plugins/genesis-simple-share/lib/sharrre/jquery.sharrre.min.js?ver=0.1.0.
That URL should read
//graph.facebook.com/?id={url}&callback=?instead when the old file is no longer cached.You could try clearing all caching plugins again, as well as flushing the cache in CloudFlare if you’re using their caching features too.
You should see the share count update to around 16,000 once that’s corrected: https://graph.facebook.com/?id=http://graywolfsurvival.com/66545/how-to-build-ultimate-25-pound-bug-bag/
Forum: Plugins
In reply to: [AgentPress Listings] How do you change the agentpress listing slug?Glad I could help. 🙂
Do you now have both snippets in your functions.php, or only the last one?
To clarify, that last snippet of code is an addition to the previous snippet. The last snippet handles the taxonomies URLs, and the previous one handled the listings post type itself.
So your
functions.phpshould include both snippets now:add_filter( 'agentpress_listings_post_type_args', 'sp_change_listings_slug' ); function sp_change_listings_slug( $args ) { $args['rewrite'] = array( 'with_front' => false, 'slug' => 'commercial-listings' ); return $args; } add_filter( 'register_taxonomy_args', 'sp_change_listings_taxonomy_slugs', 10, 3 ); function sp_change_listings_taxonomy_slugs( $args, $taxonomy, $object_type ) { if ( $object_type[0] != 'listing' ) { return $args; } $args['rewrite'] = array( 'with_front' => false, 'slug' => $taxonomy ); return $args; }With those in place you should see
blogremoved from the listings, as well as the listing taxonomy archives. (Click Save Changes on the permalinks settings page after modifying that code if it appears to have no effect at first.)It’s important not to duplicate the code accidentally and end up with two functions with the same name, as that can cause errors. It may be easiest to remove what you’ve added so far and copy-paste both snippets from the above sample.
These forums are for general plugin usage questions and bug reports, rather than site customisation or permalink modifications, so it may be worth hiring a developer if you need further help with this. (I’m unavailable at the moment, sadly, but you’ll find a lot of friendly folks here:
http://www.studiopress.com/genesis-developers/)- This reply was modified 9 years, 7 months ago by Nick C.
Forum: Plugins
In reply to: [AgentPress Listings] How do you change the agentpress listing slug?You can use this code to strip the
blogprefix from all custom listings taxonomies:add_filter( 'register_taxonomy_args', 'sp_change_listings_taxonomy_slugs', 10, 3 ); function sp_change_listings_taxonomy_slugs( $args, $taxonomy, $object_type ) { if ( $object_type[0] != 'listing' ) { return $args; } $args['rewrite'] = array( 'with_front' => false, 'slug' => $taxonomy ); return $args; }- This reply was modified 9 years, 7 months ago by Nick C. Reason: return $args in short-circuit check
Forum: Plugins
In reply to: [AgentPress Listings] How do you change the agentpress listing slug?If you have
/blog/%postname%/as your permalink structure, you can add'with_front' => false,to your filter to drop theblogprefix from listings permalinks:add_filter( 'agentpress_listings_post_type_args', 'sp_change_listings_slug' ); function sp_change_listings_slug( $args ) { $args['rewrite'] = array( 'with_front' => false, 'slug' => 'commercial-listings' ); return $args; }You will need to click “Save Changes” at Settings → Permalinks to flush your rewrite rules after making this change to your code.
You could edit each specific link you’d like to discourage search engines from following and add ‘nofollow’ to the
relattribute:<a href="http://example.com/go/slug/" rel="nofollow">example link text</a>More here: https://support.google.com/webmasters/answer/96569.
I’m not aware of a way to apply nofollow to links with a specific URL format in bulk, though. (You can only apply it to individual links via the
relattribute, or to all links on a certain page vianofollowon the robots meta tag.)- This reply was modified 9 years, 7 months ago by James Huff.
- This reply was modified 9 years, 7 months ago by Nick C. Reason: formatting
Forum: Plugins
In reply to: [AgentPress Listings] How do you change the agentpress listing slug?Welcome!
For small snippets like this, inserting it after all other code is fine.
Forum: Plugins
In reply to: [AgentPress Listings] How do you change the agentpress listing slug?That version is very similar to the solution I offered – it just uses a different function name (which makes no difference here). Either one will work great!
Just make sure the quotes in your code are straight quotes
', as in my example above, rather than typographic quotes‘’, as they’ve been rendered above in the example you pasted. Curly quotes can result in error messages with PHP.Hi, @drastikone1.
Yes – setting noindex, nofollow, and disallowing the short URL in robots.txt are all good precautions if you find your links appearing in search results.
Forum: Plugins
In reply to: [Osom Author Pro] Internationalization, translation, and dates problems@brandimarie88 I replied to your post at https://wordpress.org/support/topic/translation-assistance-2, but please feel free to follow up there if you need further help with this!
Forum: Plugins
In reply to: [Osom Author Pro] Translation AssistanceHi, @brandimarie88!
If you’re editing the plugin directly to change these labels, the “Published” label can be found at
plugins/genesis-author-pro/functions/template.phpon line 439:$label = time() < $meta ? __( 'Available', 'genesis-author-pro' ) : __( 'Published', 'genesis-author-pro' );(Just be aware that plugin updates will overwrite file changes like this, unfortunately.)
The beta/development version of the plugin includes support for translation via
.moor.pofiles if you wanted to use https://wordpress.org/plugins/loco-translate/ or https://poedit.net/ to do your translations instead of editing plugin files directly:You can download the beta version with translation support here: https://github.com/copyblogger/Genesis-Author-Pro/archive/develop.zip