Trying to Add a LEFT Sidebar?

I added after get_header(); ?> <aside id=”secondary” class=”left-sidebar widget-area” role=”complementary”> <?php dynamic_sidebar( ‘sleft’ ); ?> </aside><!– .sidebar .widget-area –> Then aside#secondary { width: 20%; float: left; margin-right: 15px; } Now… if you’re going to have both sidebars, you’ll have to adjust the @media screen and (min-width: 61.5625em) body:not(.search-results) article:not(.type-page) .entry-content { float: left; width: 50%; … Read more

Pass arguments to function class with do_action()

If you want to apply the add_action and do_action in combination with class object, you have to use a static function to access your class. Try this code with your own wording/variables: class My_Plugin { protected static $_instance = null; // Static function used to access this class public static function get_instance() { if ( … Read more

Newest comments first not working

You have no need callback function. Only reverse_top_level: true is find for what you want to do. Just remove ‘callback’ => ‘custom_comments_callback’, from your array. <?php wp_list_comments(array( ‘reverse_top_level’ => true, ‘avatar_size’ => 50, ‘reply_text’ => ‘Reply to this comment’ )); ?>

WordPress Jquery+scripts enqueue issue

The enqueue_parent_theme_style() and my_jquery_enqueue() functions do not have closing brackets. Does the above code run? Otherwise the code looks okay. Are running WordPress with WP_DEBUG set to true? https://codex.wordpress.org/Debugging_in_WordPress I use the following in my wp-config.php file: if ($_SERVER[‘REMOTE_ADDR’] == ‘123.456.789.123’) { define(‘WP_DEBUG’, true); define(‘WP_DEBUG_LOG’, true); define(‘WP_DEBUG_DISPLAY’, false); @ini_set(‘display_errors’, 0); } else { define(‘WP_DEBUG’, false); … Read more

Changing the register url is not working

First, make sure you have a Page set up with the slug “join”. This page must exist if you expect to point visitors there. Second, using this filter will NOT redirect you to the /join/ page when you directly visit wp-login.php. It only replaces the URL WordPress uses when generating links/URLs to the default signup … Read more

Ajax not working to insert, query and result data

I would suggest googling “wordpress ajax tutorials”. Here is one that was beneficial to me. https://premium.wpmudev.org/blog/using-ajax-with-wordpress/ The first problem I see is you have not stated what your ‘action’ variable is. The JavaScript AJAX call specifies what function is targeted in the ‘action’ attribute. In WP, this is the hook executes your server-side AJAX code. … Read more