where is admin footer?

So the question that you found this code from here says that they added this to the admin_footer action. So you could add that custom_bulk_admin_footer to your functions.php, and then hook it into the admin_footer action with this after the function: add_action(‘admin_footer’, ‘custom_bulk_admin_footer’); Obviously you need to change the jQuery code to do what you … Read more

Custom WP Query order function possible?

No, it’s not possible. You can’t actually store arrays as meta. When they’re saved they’re converted to a string, so there aren’t individual parts that you can sort by. To do this you will need to store the share numbers as their own keys.

How can I change the background color of divs dynamically (depending on an order-status in woocommerce)?

Your issue is a misunderstanding of how CSS/HTML works. Take this example: <style>p { color: red; }</style> <p>1</p> <style>p { color: blue; }</style> <p>2</p> <style>p { color: green; }</style> <p>3</p> Which colour is the 1st paragraph? I suspect you would answer red, but that would be incorrect. All paragraphs are green. The disconnect is that … Read more

Ordering terms whilst in loop

I just realised I already have the parent from here $category = $_GET[‘category’]; So I changed my code: <td class=”custom-cat”> <span class=”term”> <?php echo $category; ?> </span></td> <td class=”custom-sub-cat”> <span class=”term”> <?php $terms = get_the_terms( get_the_ID(), ‘custom-category’ ); foreach ( $terms as $term ){ if ( $term->parent ==! 0 ) { echo $term->name; } } … Read more

List of terms in alphabetical order under the respective initial letter and within columns

Let CSS handles the grid layout. For example with markup like this: <ul class=”term-list”> <li>1</li> <li>2</li> <li>3</li> <li>4</li> <li>5</li> <li>6</li> </ul> You can create that layout simply with this CSS: .term-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); column-gap: 1rem; grid-gap: 1rem; } So just abandon the custom counter and each loop only append the <li>. … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)