How to add pagination in between post and comments?

I got my solution. <?php // move pagination links above other end-of-post content additions, like related posts etc. function move_pagination( $content ) { if ( is_single() ) { $pagination = wp_link_pages( array( ‘before’ => ‘<div class=”page-links”><span class=”page-links-title”>’ . __( ‘Pages:’, ‘firmness’ ) . ‘</span>’, ‘after’ => ‘</div>’, ‘link_before’ => ‘<span>’, ‘link_after’ => ‘</span>’, ‘echo’ => … Read more

Restrict users post for himself

Try this code: (edited code a little) add_action( ‘template_redirect’, ‘my_page_template_redirect’ ); function my_page_template_redirect() { global $post; if( is_user_logged_in() ) { if( is_single() ){ if( $post->post_author != get_current_user_id() ){ wp_redirect( ‘IN ANY PAGE’ ); } } }else{ wp_redirect( ‘IN ANY PAGE’ ); } }

Removing rel=”nofollow” from links posted in Post Content

These links are generated by alx_social_links() function. So in your theme’s functions.php file, search for alx_social_links() function and this link specifically. echo ‘<li><a rel=”nofollow” class=”social-tooltip” ‘.$title.’ ‘.$link.’ ‘.$target.’><i ‘.$icon.’ ‘.$color.’></i></a></li>’; and remove rel=”nofollow” from it. So this will be the new link. echo ‘<li><a class=”social-tooltip” ‘.$title.’ ‘.$link.’ ‘.$target.’><i ‘.$icon.’ ‘.$color.’></i></a></li>’; It will remove nofollow tag … Read more

JSON – Permission Error?

Your problem is that you are checking for nonce and the nonce is stale. It is hard to make a specific comment about the need of using nonce in your case, but in general nonces should be used only for data submission not query.

How to display data in archive page?

You can use the_terms function in WP to display your term values in your archive page. Usage the_terms( $id, $taxonomy, $before, $sep, $after ); Parameters $id (int|req) -> Post ID. Default: None $taxonomy (str|req) -> Taxonomy name. Default: None $before (str|opt) -> Text to display before tags are displayed. Default: Empty string $sep (str|opt) -> … Read more