You are on page 1of 2

Upload wp-post-view folder to the /wp-content/plugins/ directory

Activate the plugin through the 'Plugins' menu in WordPress


Place echo_post_views(get_the_ID()); anywhere in the file codes to display AFTER
in single.php file.
You can either install it automatically from the WordPress admin, or do it manua
lly.
Unzip the archive and put the page-navi-slider folder into your plugins folder (
/wp-content/plugins/)
Activate the plugin through the Plugins menu in WordPress
Keep defaults settings or customize and preview through the Setting / Page navi
slider menu
Place <?php if(function_exists('page_navi_slider')){page_navi_slider();}?> in yo
ur templates.
Or activate the auto display feature in the settings (not recommanded).
Download the WP Dropdown Hierarchial Category UI Plugin.
In your WordPress Administration, go to Plugins > Add New > Upload, and select t
he plugin ZIP file.
Activate the plugin.
Replace your old-school pagination with this schortcode <?php echo do_shortcode(
'[wpsp]'); ?> in your template file, i.e. index.php, archive.php, search.php, or
any template requires pagination.
<--------------- read more back link-------------------->
function add_copyright_text() {
if (is_single()) { ?>
<script type='text/javascript'>
function addLink() {
if (
window.getSelection().containsNode(
document.getElementsByClassName('entry-content')[0], true)) {
var body_element = document.getElementsByTagName('body')[0];
var selection;
selection = window.getSelection();
var oldselection = selection
var pagelink = "<br /><br /> Read more at WPBeginner: <?php the_title(); ?>
<a href='<?php echo wp_get_shortlink(get_the_ID()); ?>'><?php echo wp_get_shortl
ink(get_the_ID()); ?></a>"; //Change this if you like
var copy_text = selection + pagelink;
var new_div = document.createElement('div');
new_div.style.left='-99999px';
new_div.style.position='absolute';
body_element.appendChild(new_div );
new_div.innerHTML = copy_text ;
selection.selectAllChildren(new_div );
window.setTimeout(function() {
body_element.removeChild(new_div );
},0);
}
}
document.oncopy = addLink;
</script>
<?php
}
}
add_action( 'wp_head', 'add_copyright_text');

You might also like