How to remove the trackback and pingback text on the bottom of my pages?

You can uncheck Settings >> Discussion >> “Allow link notifications from other blogs (pingbacks and trackbacks) to disable disable for future posts. However, to disable for exiting posts you need to run a SQL query on your database to turn the ping_status to OFF: UPDATE wp_posts SET ping_status=”closed” WHERE post_status=”publish” AND post_type=”post”; and UPDATE wp_posts … Read more

archive per year with monthly

To display monthly archives arranged by year, you can use this code. It checks through each month if WordPress have any post in that month and create archive. <?php global $wpdb; $limit = 0; $year_prev = null; $months = $wpdb->get_results( “SELECT DISTINCT MONTH( post_date ) AS month , YEAR( post_date ) AS year, COUNT( id … Read more

Use bootstrap for wordpress gallery? [closed]

The gallery shortcode is contained in the wp-includes/media.php file. There is a function gallery_shortcode( that does all work. About 25 lines down you find: $output = apply_filters( ‘post_gallery’, ”, $attr, $instance ); if ( $output != ” ) { return $output; } This code goes out and runs any filters tethered to post_gallery, and if … Read more

Is it possible to recover Deleted users?

When you work with any type of database it is of UTMOST importance to create regular backups. Once you delete something from a database it is gone forever. This is what they teach in the first class of any database course. Here is a link to a question in DB stackexchange I highly doubt they … Read more

‘get_previous_post’ in same category returning (!empty) when no previous post in category exists

Figured it out 🙂 It ends up the Smarter Navigation plugin has a few other functions that I missed: https://plugins.trac.wordpress.org/browser/smarter-navigation/trunk/template-tags.php I used get_adjacent_id_smart() like so: <?php $prev_post = get_adjacent_id_smart(true); if(!empty($prev_post)): echo ‘not empty’; previous_post_smart(); else: echo ’empty’; endif; ?> And I got the behavior I was looking for, don’t know why the default WP function … Read more

WordPress plugin add_filter returning a link does not work. What is the correct way?

The reason the link isn’t working is because you haven’t formatted it correctly. This: return ‘<h3><a href=”www.google.com”>Hello World</a></h3>’.$content; Should be this: return ‘<h3><a href=”https://www.google.com/”>Hello World</a></h3>’.$content; To answer your other question: There are a lot of social sharing plugins that will add sharing links to your content.