html entities occur in the_excerpt used as meta description

I think you want to to this on singular post/page, so you don’t think to setup global post object, it is already set up. After that, the problem is that calling get_excerpt will run some filters that add html entities. This is because get_the_excerpt is intended to be used in page content (inside the <body> … Read more

Sort appearence order in the_content()

You could try to add the Facebook-Like html code via this filter: /** * Append Facebook Like to the content * * @param string $content * @return string $content */ function custom_the_content( $content ) { $fblike=”<div class=”fb-like” data-layout=”button_count” data-action=”like” data-show-faces=”false” data-share=”false”> </div>”; return $content . $fblike; } add_filter( ‘the_content’, ‘custom_the_content’, 9, 1 ); if the … Read more

Excerpt keep stripping tags

add_filter( ‘get_the_content_limit_allowedtags’, ‘get_the_content_limit_custom_allowedtags’ ); function get_the_content_limit_custom_allowedtags() { // Add custom tags to this string return ‘<script>,<style>,<br>,<em>,<i>,<ul>,<ol>,<li>,<a>’; } You can also add this code in your functions file and customize which tags you want to allow in excerpts.

Main menu effect visited

If you mean ‘when the user navigates to page X by clicking it’s menu button’, you can use the current_page_item CSS class. Unless you want to modify the plugin code, I don’t think it’s possible unless you set the current_page_item img {content:…} per menu element.

Removing Unused WP SEO Codes display on html page [duplicate]

Emoji is a new feature added to WordPress 4.2 core and has nothing to do with your WP SEO code. You can remove these by using this removing action in functions.php Code Update – Christine Cooper’s answer here: Disable Emojis deals with all Emoji content throughout the site. function disable_wp_emojicons() { // all actions related … Read more

Https and Http for iFrame

Because your server is HTTPS, the only way you can accomplish this is rendering the content on your server or getting the 3rd party to upgrade their server content to HTTPS. It’s just the rule of the Internet. To fix the mixed content issue, pull all the JS and HTML you need into your own … Read more

Meta Tag “description”

Do not add meta tags in post editor. Best way to do is use SEO plugins. Best plugin for SEO is Yoast Seo Or add this code in your themes header.php just after title tag. <meta name=”description” content=”<?php if ( is_single() ) { single_post_title(”, true); } else { bloginfo(‘name’); echo ” – “; bloginfo(‘description’); } … Read more

How to place copyright next to footer menu?

You can achieve this by enclosing them in divs like in following line of your code <p id=”copyright”>&copy; <?php echo date(‘Y’);?> <?php bloginfo(‘name’); ?> | <?wp_nav_menu( array( ‘theme_location’ => ‘new-menu’, ‘container_class’ => ‘secondary-footer’ ) ); ?></p> Enclose above code in divs like this <div style=”float:left;width:50%;”><p id=”copyright”>&copy; <?php echo date(‘Y’);?> <?php bloginfo(‘name’); ?> | </div> <div … Read more

All wordpress site went white blank screen

First, backup your site before you do anything. This is what I do when encounter such kind of problem: 1.Turn WP_DEBUG as true in your wp-config.php 2.Using default theme to see if the site is ok or not. 3.Deactivate all plugin to see if the site is ok or not. 4.Activate the plugins one by … Read more