Remove clickable Link of WordPress Site Logo from Woocommerce Single Product page

Each product should have a unique class identifier in the body. Compare two product pages and depending on the theme you are using. Allot of them have a unique css identify. Look for something like: postid- followed my numbers for example. If you had something like: <body class=”product-template-default single single-product postid-3592 wp-custom-logo woocommerce woocommerce-page woocommerce-no-js … Read more

Delete empty title_tags, find a h1 heading and echo it

You can’t do if(the_title()) cuz the_title() this code’ll echo a value… Use get_the_title() for a return of the value. Remove this code too: $newtitle = h1 -> outercontent; Do this for check if title is empty: if(empty(get_the_title())){ // Is empty } else { // is not empty } Or you can do only this: if(!empty(get_the_title())){ … Read more

Get post_author email for Zapier Integration

There’s no direct way of getting the post author’s email from a post. You can get the email by using the author ID, which is present in standard WP_Post object. $post_author_id = intval( $post->post_author ); $post_author_email = get_the_author_meta(’email’, $post_author_id); Or if you just have the post ID $post_author_id = intval( get_post_field( ‘post_author’, $post_id ) ); … Read more

how can export data in excel file custom plugin

<script src=”https://wordpress.stackexchange.com/questions/355504/<?php echo plugins_url();?>/client/jquery.js”></script> <button id=”excel” onClick =”$(‘#dataTable’).tableExport({type:’excel’,escape:’false’});”> XLS</button> <button id=”print”>Print me</button> <table class=”dash-table” width=”100%” cellspacing=”0″ cellpadding=”10px” border=”0″ id=”dataTable”> <tr> <td>Client Name</td> <td>Email</td> <td>Health Condition</td> <td>Changes</td> <td>Image</td> </tr> <?php foreach ($results1 as $key => $value) { ?> <tr> <td><?php echo $value->rclient_name;?></td> <td><?php echo $value->email;?></td> <td><?php echo $value->health_condition;?></td> <td><?php echo $value->changes;?></td> <td><img src=”https://wordpress.stackexchange.com/questions/355504/<?php echo $value->image;?>” width=”50px” … Read more