Custom Bulk Actions handler not firing

Hi first fix your condition if ( $action !== ‘out_of_stock’ || $action !== ‘in_stock’) { this condition will always run because your action is in contrast with “out_of_stock” or “in_stock”. So I think if you change the condition from OR to AND it will work. Then find out if the screen id is the one … Read more

How to delete specific element when it is not homepage?

If I’m understanding correctly, and the code you posted is the full contents of your post, one option would be to only keep the paragraph in the main content, and add the link as custom postmeta. You would then create a child theme and edit whichever places you want links – front-page.php for the homepage, … Read more

LinkedIn Share Post Button

Use this: <script type=”text/javascript” src=”http://platform.linkedin.com/in.js”></script><script type=”in/share” data-url=”<?php the_permalink(); ?>” data-counter=”right”></script>

custom fields anchor points php

What you wanna do is use the name attribute. <a href=”#my-anchor”>Link to the anchor</a> <p name=”my-anchor”>This is the anchor</p> Also, I would use something consistent, like the post/page slug to be able to link to each section. <?php global $post; ?> <div class=”guide-section” name=”<?php echo $post->post_name; ?>”> And then for your list use the slug … Read more

custom search query database in child theme

The text input names don’t match the $_POST keys you are looping. Using [] in the input name attribute is for handling multiple inputs, not multiple keys. Try replacing name=”search[batch_no]” and name=”search[rfid_chip_no]” with simply name=”search_batch_no” and name=”search_rfid_chip_no” and looping $_POST instead of $_POST[“search”]. Also you need to check the conditions match, as only code and … Read more