Skip to main content
vulgarbulgar's user avatar
vulgarbulgar's user avatar
vulgarbulgar's user avatar
vulgarbulgar
  • Member for 13 years, 8 months
  • Last seen more than a month ago
comment
taxonomy pages returning “NULL” when running default WordPress function 'get_queried_object()'
thanks for the suggestion. i also enabled output of errors to the browser console so can spot when they may appear. will report back.
comment
taxonomy pages returning “NULL” when running default WordPress function 'get_queried_object()'
using bricks builder. everything is up to date. i have not been able to pinpoint which page triggers this. is there an efficient way to do this, or rather, what is the way of figuring that out? thanks
Loading…
Loading…
awarded
awarded
comment
Bulk delete WordPress posts with phpMyAdmin
newbie here - where do i place this code to execute?
awarded
comment
post meta value as shortcode parameter
yes, aware of that, and contacted the plugin dev regarding future updates and the possibility of implementing a filter as in the core plugin. thanks!
comment
comment
post meta value as shortcode parameter
that did it! hopefully they'll implement actions or filter, or will find a way to hijack it without modifying actual plugin.
accepted
asked
Loading…
comment
custom field value as shortcode parameter
i understand. will implement the second method! as for the forms version, i found this: // hijack the download shortcode add_shortcode( 'dlm_gf_form', array( $this, 'shortcode_dlm_gf_form' ) ); perhaps similar way to insert post meta into form version of shortcode?
comment
custom field value as shortcode parameter
i dug around the addon code and think found a similar callback for the shortcode id para, but not quite sure what i'm missing: function download_shortcode_custom_form_id($id, $atts = []){ if(!is_numeric($form_id) && $form_id = 'auto' ): //change 'temp' post meta name with your own $post_meta = get_post_meta(get_queried_object_id(), 'ur-download-form-id', true); $post_meta ? $form_id = $post_meta : null; endif; return $form_id; } add_filter('dlm_gf_form', 'download_shortcode_custom_form_id', 10, 2);
comment
custom field value as shortcode parameter
i have several post metas that are numeric IDs hence must use first method? i'm also using an addon for download monitor - gravity forms lock link. for that, the shortcode, which i must include in the same post is like this: [dlm_gf_form download_id="ur-single-download-form-id"] where ur-single-download-form-id would represent the post meta name.
comment
custom field value as shortcode parameter
just tested - both methods work! thank you!
accepted
comment
custom field value as shortcode parameter
thanks for the extra legwork! will test again and report.