I have a simple lazy block with a status field as a select. The value of the field is stored in a meta field. This works correctly the first time it is saved. However, when I edit the post and change the value, the initial value is still saved after saving. How can I overwrite the initial value?
Thanks a lot for the help
Chris
]]><a href=""><?php echo get_post_meta($post->ID,'mood-one', true); ?></a>
I want to show all the posts with same meta value when the viewers click on the meta value and also want it to be searchable …
]]>Hello, i get this warning in the debug log
PHP Warning: Attempt to read property “meta_value” on null in /home/u74339p145570/domains/public_html/wp-content/plugins/woo-cart-abandonment-recovery/modules/cart-abandonment/classes/class-cartflows-ca-email-schedule.php on line 163
Thanks
]]>
if ( ('att-email' === $field_name ) && ($content != '')) {
return '<a href="mailto:'.$content.'" title="Email"><i class="fa fa-envelope" aria-hidden="true"></i></a>';
}
But now I want to wrap name meta fields in a link. Is there a good way to do this? I can fudge it with multiple filters, but that does not seem like the RIGHT way to do it.
e.g. I have First, Middle, and Last names as separate fields, but would like it to be like this
return '<a href="'.esc_url(get_permalink()).'">'.$first.' '.$middle." ".$last.'</a>';
Example: I have a deadline-date field that returns YYYY-MM-DD and I would like to display Month DD, YYYY (e.g. October 7, 2022)
If I can filter on field name, I could rewrite how ever I need, something like this…
if ( ('deadline-date' === $field_name ) && ($content != '')) {
return '<strong>Deadline:</strong> ' . date( get_option('date_format'), strtotime( $content ) );
}
if ( ('email' === $field_name ) && ($content != '')) {
return '<a href="mailto:'.$content.'">'.$content.'</a>';
}
`
]]>Shortcode:
[pods name=”credit_card” orderby=”net_value_travel.meta_value DESC” limit=”5″ where=”rewards_program.meta_value=’Aeroplan'” template=”credit-card-table”]
Page:
https://frugalflyer.ca/credit-card/cibc-aeroplan-visa-infinite-privilege/
Here’s a link to the thread for The Events Calendar: https://www.ads-software.com/support/topic/error-updaiting-failed/#post-15548705
Sadly, the error did not write to an error log, so I don’t have an error log message for you, only what occurred in the browser.
]]>