How To Remove The Filter That Adds JetPack Related Content To Dom [closed]

$jprp = Jetpack_RelatedPosts::init(); remove_filter( ‘the_content’, array( $jprp, ‘filter_add_target_to_dom’ ) ); Should work fine. The Jetpack_RelatedPosts init function implements the singleton pattern, so calling it will return the already instantiated instance, which you can use to remove the filter. Just make sure you call your code late enough. The main module is hooking the add_action to … Read more

How to create a custom image gallery in the footer?

In order of perferance: Option A : Use the plugin that you mention because the footer can have it’s own custom sidebar, this makes it easy to manage. If you don’t like that plugin it still makes sense to use a custom sidebar for your footer, there nothing stopping you from writing your own widget … Read more

How to read a page’s “Shortcodes” from the Template File?

Parsing shortcodes from strings WordPress parses and replaces shortcodes from a piece of content via the do_shortcode function. This function, in turn, calls get_shortcode_regex, which returns the regular expression for matching shortcodes in a string. Using this function, we can get a list of all shortcodes ourselves: $pattern = get_shortcode_regex(); preg_match_all( “/$pattern/s”, $content, $matches ); … Read more

Renaming or Moving WP-Content Pros/Cons

I always recommend installing WordPress manually yourself. Some companies will insert a link crediting the hosting provider for the install. In the past, I’ve experienced 1-click installations that are not running the latest version of WordPress. In terms of migrating your website, you should follow this guide: http://codex.wordpress.org/Moving_WordPress. Smashing Magazine also provide an easy tutorial: … Read more

how to ask if in two categorys inside if

You can specify multiple categories within has_category like so: if ( has_category( array( ‘category_1’, ‘category_2’ ) ) { // do something } However, I am not sure if this acts as AND or OR, meaning does it require that ALL categories specified are matched, or one of the X supplied (category_1 OR category_2). In any … Read more

Changing Menu Fonts Design [closed]

Your question is really a pure CSS and HTML question and not specifically WordPress. It’s best to learn to use Firebug with Firefox, or use the developer tools in Chrome or Safari or IE to view and work with the CSS and HTML in your theme and then make those changes to theme files, such … Read more

How to delete Jetpack Widgets from the Widgets page in admin panel [closed]

This is not an alteration to the Plugin itself, it’s just a way to revert what is already done. So, to Activate a plugin there’s a WordPress function: register_widget(‘Class_of_the_Widget’); As we can unregister the default plugins using the unregister_widget() function, we can use the same function for JetPack plugin’s widgets too. Get into the /wp-content/plugins/jetpack/modules/widgets, … Read more