Category: WordPress

WordPress Even odd Post Logic

<?php while (have_posts()): the_post() ?> <?php if ($wp_query->current_post % 2 == 0): ?> even <?php else: ?> odd <?php endif ?><?php endwhile...
READ MORE   >>

Dropdown Menu Parent link Clickable

Change the CSS dropdown:hover .dropdown-menu {  display: block;} Add Jquery Code $('.dropdown-toggle').click(function() {    var location = $(this).attr('href');    window.location.href =...
READ MORE   >>

Create Short code in WordPress using Action Hook

<?php /** DOC LOG */ defined('ABSPATH')||die("You can't access this file directly"); add_action('init','shairy_init'); function shairy_init() {            ...
READ MORE   >>

Action and Filter Hook in WordPress

Step 4 In the precious session we already learned about the Action Hook and Filter Hook of the word press. In this session we will cover the function used in these hooks with their working. There are 4 functions in Action and Filter Hook as...
READ MORE   >>

Recent Comments

    • Copyright © 2020 (Er. Shairy Kalra). All Rights Reserved