Issue with search form admin panel after PHP migration
Issue with search form admin panel after PHP migration
Issue with search form admin panel after PHP migration
Woohoo, I actually got it working. Had to use new DateTime() with the variables and $diff->days to display the days. Now just to prevent the function from duplicating the meta information in the rare cases where some store manager changes the status by accident back and forth between completed and some other status. Ideas? function … Read more
You need an action called manage_$post_type_posts_custom_column. This will allow you to add columns to your custom posts page. To be more precise, you need a filter to generate the column and an action to fill it with content. In your case something like this (untested): add_filter( ‘manage_chimpmunks_posts_columns’, ‘set_custom_size_column’ ); add_action( ‘manage_chimpmunks_posts_custom_column’ , ‘fill_custom_size_column’, 10, 2 … Read more
You don’t need javascript, just change the class using the get_theme_mod variable e.g. <?php $layout = get_theme_mod(’embee_layout_section_options[site_layout]’, ‘3’); $class=””; if($layout == ‘1’) { $class=”this”; } elseif($layout == ‘2’) { $class=”that”; } ?> <div class=”<?php echo $class; ?>”> // stuff </div> Put that in your template file e.g. page.php and the live customizer will pick it … Read more
nopaging=true override posts_per_page and sets it to -1 which will return all posts. Remove that and you should be fine
You don’t need php at all to achieve what you are after. This can be done with just css. This shows the title and excerpt by default. .wrap .wp-tiles-byline-fade-in .wp-tiles-tile-with-image .wp-tiles-byline { opacity: 1; } This hides the excerpt again now that we have revealed it. .wrap .wp-tiles-byline-fade-in .wp-tiles-tile-with-image .wp-tiles-byline .wp-tiles-byline-content { opacity: 0; } … Read more
You shouldn’t need to change anything in the database. If you’ve set up your child theme correctly, and it appears in the list of installed themes, activating that child theme, should make any updates necessary. The customizations you made back in the day should go in the child functions.php and child style.css. As long as … Read more
You got javascript file and CSS file! Then you have to put those files in you child theme folder like themes -> your_child_theme_folder -> js(if you dont have js folder then create one) and place your js file here AND you have to put you css file in css folder inside your child theme. Now … Read more
Here’s the trace results. http://coinauctionshelp.com/United_States_Coin_Mintages_Price_Guides.html HTTP/1.1 500 Internal Server Error Date: Fri, 01 Jul 2016 22:24:27 GMT Server: Apache Last-Modified: Mon, 25 Apr 2016 21:39:43 GMT ETag: “38150-117-5315603b9a5c0” Accept-Ranges: bytes Content-Length: 279 Vary: Accept-Encoding Content-Type: text/html Connection: close
The problem is this line $sales = get_user_meta($_POST[‘repID’], ‘sales’); change it to $sales = get_user_meta($_POST[‘repID’], ‘sales’, true); The last parameter says, that you are getting a single value – an array. Otherwise you get an array inside another array. https://developer.wordpress.org/reference/functions/get_post_meta/ EDIT: After reading the comments, as you have the meta in multiple rows, you should … Read more