• Assign Content of Deleted Anonymous User to a Real User using mysql command as there is no option of doing this from wordpress dashboard.

    1. Create a user from admin panel and note down the userid. Suppose it is 1623.
    2. Then run the following SQL query.

    UPDATE wp_posts SET post_author=1623 WHERE post_author=0;

    That’s it.

  • We shall create two shortcodes:-

    1. [departments]
    2. [subjects]

    Then we will place this shortcode inside any post or page.

    Add the following code inside theme styles.css

    tab {
    	padding-right: 1rem;
    	line-height: 2.5;
  • Add the following code inside the functions.php file of the theme.

    add_filter( 'login_redirect', function ( $redirect_to, $requested_redirect_to ) {
    if ( ! $requested_redirect_to ) {
    $redirect_to = wp_get_referer();
    return $redirect_to;
    }, 10, 2 );
  • If you are using any Caching plugin then you should not cache the forums part.

    We use Cache Enabler, the very simple caching plugin. You can exclude forums, topics etc. of bbPress using the following regex.


  • How to display post content in 2 columns


    If you want to display post content in two columns, its very easy. Just add the following code inside your theme’s style.css file.

    .half {
    	width: 45.8333333%;
    	float: left;
    	padding: 1rem;

    Now write your post content as follows:-

    Congrats! You are done.

    Now, if you don’t like to show post content in 2 column in mobile devices, then you add the following into style.css

    @media only screen and (max-width:767px) {
    .half {
    	width: 100%;
    	padding: 0;
  • How to Increase Font Size of bbPress


    Add the following code snippet in your theme style.css

    /* bbpress specific styling */
    #bbpress-forums ul.bbp-forums,
    #bbpress-forums ul.bbp-lead-topic,
    #bbpress-forums ul.bbp-replies,
    #bbpress-forums ul.bbp-search-results,
    #bbpress-forums ul.bbp-topics,
    div.bbp-template-notice li,
    div.bbp-template-notice p,
    div.bbp-topic-tags {
    	font-size: .9rem;
    	line-height: 1.5;
    #bbpress-forums .bbp-forum-info .bbp-forum-content,
    #bbpress-forums p.bbp-topic-meta,
    span.bbp-admin-links a {
    	font-size: .9rem;