How to add delete, approve, spam Links to Comments
How to add delete, approve, spam Links to Comments
How to add delete, approve, spam Links to Comments
I think I did it. so if this code is wrong or could be simplified just correct it. I want 5 product result. So all of it should be from product_tag if it is available. if not use product_cat. so I combined 2 arg here: <?php // get the custom post type’s taxonomy terms $related_tag … Read more
It sound like you can accomplish this with 2 PHP functions. 1) Save the searched taxonomy to the user’s session. When they re-run the search function, update the taxonomy that was searched. This way if its saved to their session, you can use it elsewhere on the site just for that user. 2) Create a … Read more
Show products per shortcode
Joe, have you tried ….placeholder=”I am interested in: ‘.get_the_title().’ “…. also you don’t need all those php’s. The code can be cleaner, easier to read. One can do either: <?php echo ‘<form action=”‘ . esc_url( $_SERVER[‘REQUEST_URI’] ) . ‘” method=”post”>’; echo ‘<h5>’; echo ‘Ask a question <br/>’; ?> etc or <form action=”<?php echo esc_url( $_SERVER[‘REQUEST_URI’] … Read more
This is what I changed to and worked perfectly. echo ‘<textarea style=”margin-left: 15px; width: 246px;” rows=”3″ cols=”28″ name=”cf-message”>’ . ( isset( $_POST[“cf-message”] ) ? esc_attr( $_POST[“cf-message”] ) : ‘I am interested in: ‘.get_the_title() ) . ‘</textarea>’;
It returns null, because WooCommerce doesn’t use tags for products. It uses custom taxonomy called product_tag. So instead of $tags = get_tags(); You should use $tags = get_terms( ‘product_tag’ );
Assuming this page belongs to an agent: <p> <i class=”fa fa-envelope-o”></i> <span style=”font-size:11px”><?php echo get_the_author_meta( ‘user_email’ ); ?></span> </p> Assuming this page does not belong to the agent, but the email is stored in the page’s custom field named, for example, agent_email: <p> <i class=”fa fa-envelope-o”></i> <span style=”font-size:11px”><?php echo get_post_meta( get_the_ID(), ‘agent_email’, true ); ?></span> … Read more
Remove item from post_meta array via AJAX
Would this help? $status=”scheduled”; //you may need to change this $my_post[‘post_status’] = $status; Fond something from this link.