Hide empty categories from get_categories
Try this hide_empty=1 it should be hide_empty=0
Try this hide_empty=1 it should be hide_empty=0
It was Stellar parallax. Here is the offending code: // Stellar parallax var $ = jQuery.noConflict(); $(function(){ $.stellar({ horizontalScrolling: false, verticalOffset: 40 }); }); I now need to go away and figure out what in this code was giving me the problem. Thanks for the prompts of where to look.
Fatal error: Call to undefined function __() in /homepages/5/d367772185/htdocs/rodandfly/wp-admin/includes/file.php on line 13 Where is your code? file.php is expecting __() to be defined which it should be if your loading it from within an activated plugin. The best way to do what your trying to do is use either media_handle_sidelaod() or media_sideload_image() which will cause … Read more
Try background:url(<?php echo plugins_url().’/myimgfolder/my_img.png’; ?>) no-repeat <?php echo $x_position.’ ‘.$y_position; ?>; It will allow you to echo the PHP elements into your style. EDIT: You also need to close the file, you’re trying to mix unwrapped PHP with your CSS. Your PHP variables aren’t escaped either. I’ve tested the code below, and it works fine: … Read more
I would take a look at http://codex.wordpress.org/Plugin_API/Action_Reference/delete_post as the example seems to be doing exactly what you want to do in a situation. Your actual code as far as hooking into WordPress looks fine to me, but a key note to remember from the page I linked to is that this event is triggered by … Read more
If you want to output the $id, you need to echo. Also be sure to use esc_attr() as a good security practice. <input type=”hidden” name=”id” value=”[insert_php]echo esc_attr( $id );[/insert_php]”> In addition, as was noted in another answer, you’re calling it an ‘id’, but you’re actually using the login (username). If all you need is the … Read more
You can use this function wp_trim_words(). It allows you to format the output, and strips all the HTML tags in the content (it uses wp_strip_all_tags). You will have to pass post_content as the first paramenter.
Ok, so somehow I got it working by changing it to this: It looks like it didn’t like ‘the_clientId’. Maybe it just doesn’t like capital letters???? [insert-form form_location=”form.php” identification_number=”12345″] function insert_the_form($atts){ $form_base = plugin_dir_path(__DIR__); // Shortcode attributes & options $atts = shortcode_atts( array( ‘form_location’ => ‘NULL’, ‘identification_number’ => ‘NULL’ //Variable for client ID ), $atts, … Read more
This was occurring because I wasn’t using wp’s built in ajax.
Unless you are using AJAX for sending/fetching data, you must tolerate reloading a whole page.