Custom post type permalinks do not appear using the link functions
You missed and echo on <a href=”https://wordpress.stackexchange.com/questions/298150/<?php echo esc_url(get_permalink()); ?>”><?php the_title() ?></a>
You missed and echo on <a href=”https://wordpress.stackexchange.com/questions/298150/<?php echo esc_url(get_permalink()); ?>”><?php the_title() ?></a>
The problem is the pagination parameter in the URL: <a href=”https://wordpress.stackexchange.com/questions/298648/<?php echo (in_array($marca_term->slug, $marca_arg)) ? esc_url(remove_query_arg(“marca’)) : esc_url(add_query_arg(‘marca’, “$marca_term->slug”)); ?>”> Here we see that the marca term is being added and removed, but the pagination parameter isn’t, but that’s a part of the URL not a parameter Instead, why not use the taxonomy archives and … Read more
For existing orders, you need to use the wc_get_order() function.
EDIT 2: I come up with this kind of dirty solution, which is a function creating temporary array. It will contains the segment of the string you want to add line breaks to. Then we set it back as a string using implode. function breakLines($str,$line_length=30,$implodechar=”<br>”) { $str_length = strlen($str); $i=0; $o=0; $tmp = array();//temporary array … Read more
You need to create a child theme. You can use a plugin to do that, just search for ‘child theme’ on the wordpress plugins search. After that, you need to copy your header.php to the child theme directory. Then, you need to change the code above to the following: <?php if ( get_bloginfo( ‘description’ ) … Read more
you can find and edit new order email template and code for generating the new email in the directory “plugins\woocommerce\templates\emails\email-order-details.php”. i hope its useful and ll solve your issue.
It’s a little bit hard to guess, what exactly do you want to achieve (you’ve mentioned something about four posts in a row and then there is number 6 in your for loop), but… If you want to display only 4 posts in your loop, then you can use current_post field of $wp_query, so the … Read more
to be able to identify a specific “post” you need to have some unique attribute in its HTML. Usually the easiest thing to do is to use the post id as part of the id attribute (in your case maybe something like overlay{$post_id}). I personally started to prefer to use data- style attributes instead but … Read more
Did you check your wp-config.php file for WP_DEBUG constants? //enable debug define( ‘WP_DEBUG’, true ); //save to file define( ‘WP_DEBUG_LOG’, true ); //show in browser define( ‘WP_DEBUG_DISPLAY’, true); See https://codex.wordpress.org/WP_DEBUG for more details.
have you try withup date_post_meta <?php update_post_meta( $post_id, $meta_key, $meta_value, $prev_value ); ?> for example update_post_meta($variation_post_id, ‘_price’, $variation[‘price’]); update_post_meta($variation_post_id, ‘_regular_price’,$variation[‘price’]);