url not using query string no longer working

So I never found out why this broke in the first place, but I did find a solution that forces the proper url to work add_action( ‘init’, ‘add_mypage_rule’ ); function add_mypage_rule(){ add_rewrite_rule(‘^item/([^/]*)/?’,’index.php?pagename=item’,’top’); } Sussed out from here: https://stackoverflow.com/questions/18713230/wordpress-url-rewriting-parameters-in-url

if get_post_meta is empty echo a placeholder or shortcode

You can use empty, to check your variable. Something like this $prod_id = get_the_ID(); if (!empty(get_post_meta($prod_id,’_product_tech’,true))) { echo'<a class=”shutter” title=”technische gegevens” href=”‘.get_post_meta($prod_id,’_product_tech’,true).'”><img width=”750″ height=”100%” src=”‘.get_post_meta($prod_id,’_product_tech’,true).'”></a>’; } else { //Is empty }

add another variable to php function

Well I figured out I could duplicate the function and rename the title so it runs twice. But for future, is there a more elegant way of doing this in one instance? thanks! // orderby slideshows function modify_slider_order($query, $slider_id) { // only alter the order for slider with “x” ID // https://tinyurl.com/zb6hzpc if($slider_id == 17 … Read more