How to use my custom menus as seperate pages?

You have to create a corresponding “Page” for the items in your menu, unless those items are things that would have an automatically generated page, like a category archive or author archive. You would then select those items when you create the menu.

Trigger a function during onload

Enqueue your script only when the page you want it on is requested: function wpa_script() { if( is_page( ‘global-network’ ) ){ wp_enqueue_script( ‘wpa_script’, get_template_directory_uri() . ‘/js/my_worldmap.js’, array(‘jquery’) ); } } add_action( ‘wp_enqueue_scripts’, ‘wpa_script’ ); See is_page() in Codex.

Archives and category of authors

You can make specific pages (like landing pages) and call a specific header (or footer) template (i.e. header-authorPaul.php) by calling get_header ( “authorPaul” ); and then verifying that the author has post(s). Show the last one(s) if any. The same goes for archives.

Infinite Scroll plugin scrolling truly “infinitely” (i.e. does not recognize end of posts)

I think I already had this problem some month ago. It may help you to add the following code to your themes functions.php: http://pastebin.com/KbjS4ZeG The problem in this case was actually located in a wp core function (redirect_canonical() in wp-includes/canonical.php) which tries to “repair” broken/malformed url’s instead of showing an 404 error and ist not … Read more

Add number in increment of one to DIV ID

the code should be instead add_shortcode( ‘faq’, ‘wpse105856_shortcode_callback’ ); function wpse105856_shortcode_callback( $atts ) { extract( shortcode_atts( array( ‘category’ => ” ), $atts ) ); $args = array( ‘numberposts’ => -1, ‘orderby’ => ‘menu_order’, ‘order’ => ‘ASC’, ‘post_type’ => ‘faq’ ); if ( ! empty( $category ) ) { $args[‘category_name’] = $category; }; $posts = get_posts( … Read more

wp_localize_script not create variable in head section

Your code looks correct. alert(wp_ajax.nonce); should display the nonce. You can also verify the existence of the wp_ajax object via console.log(wp_ajax) in your browser’s Javascript console. wp_localize_script adds the object(s) to the footer (a call to wp_footer() should be present in the theme’s footer.php file). It’ll look like so: <script type=”text/javascript”> /* <![CDATA[ */ var … Read more