Pagination With Custom WP Query not functioning

One issue at least: you’ll want to close the loop before outputting your pagination links, or else they’ll be output on every iteration of the loop. But you’ve got paginate_links() before endwhile;. Try this arrangement instead: // open loop if ( have_posts() ) : while ( have_posts() ) : the_post(); // Loop markup // close … Read more

WordPress Translate Explaination

We have two main functions for translations, _e() and __(). The first prints the value, and the second assigns the value. As we are feeding a value to a function, we don’t print or echo (the e in the function) anything, so we use the assignment function __(). What happens is that edit_post_link will receive … Read more

How to delete orphan userdata from array in wp-options

If what posted is all the code you are using, you unsetting the value from the retreved array using unset, but then you don’t save again the array on database: add_action( ‘delete_user’, ‘forum_remove_deleted_user’ ); function forum_remove_deleted_user($user_id) { $user_obj = get_userdata($user_id); $subscbr_email = $user_obj->user_email; if( ! empty( $subscbr_email ) ) { $list = (array) get_option(‘mf_forum_subscribers_1’); if( … Read more

Big side banners

Register sidebars for the banners, then use the text widget to place your code in it. The default widget will strip some HTML code, so you may want to use something less invasive like my Unfiltered Text Widget.