Can I install/embed WordPress on a ‘single page’?
Include wp-load.php on your page and you’ll have access to the WordPress API.
Include wp-load.php on your page and you’ll have access to the WordPress API.
What Theme are you using? Your question is entirely Theme-dependent, so specific answers will requiring knowing what Theme you use. (Also, it would be helpful to know if any of your Plugins are injecting scripts.) The answer really depends on how those scripts and scripts are called. If they are called properly, they are registered … Read more
You have to account for all appropriate CSS classes, based on the number of columns passed to the shortcode. Here’s my CSS (borrowed heavily from Michael Fields), for handling from 1 to 10 columns: .gallery { margin: 0px auto; text-align: center; width: 100%; min-width: 100%; } .gallery .gallery-item { float: left; margin: 0px auto; text-align: … Read more
I would do this with JS I’m afraid. It’s the quickest simplest form. Using jQuery I have this snippet. jQuery(function($){ $(‘.menu li:has(“.sub-menu”)’).addClass(‘has-sub-menu’); }); Then you can use CSS to do what you need 🙂
Have a look in /wp-includes/functions.php at get_file_data(), this is the function that pulls the data out of style.css, called from the get_theme_data() function in /wp-includes/theme.php.
You need to target the appropriate theme_location. Assuming you’ve defined multiple nav menu locations using register_nav_menus() in functions.php: <?php register_nav_menus( array( ‘primary-menu’ => ‘Primary Menu’, ‘secondary-menu’ => ‘Secondary Menu’ ) ); ?> Then you call wp_nav_menu() using the appropriate theme_location as defined above, along with any other relevant arguments, e.g.: <?php wp_nav_menu( array( ‘theme_location’ => … Read more
Studying the code is an obvious approach. You can also try plugins, such as Debug Bar that can easily display you information, such as template being used and so what you are looking at.
http://tinymce.moxiecode.com/punbb/viewtopic.php?id=1522 might be what you are looking for. It’s also possible in tinymce to have different levels of editor (minimal, regular, +kitchen sink). Perhaps using one of those may serve your purpose better.
You need to redo the way you include the Javascript and CSS, or at least just the javascript. WordPress has a way to register scripts and styles and declare their dependencies, in your case it probably isn’t working because jQuery is not loaded. To include javascript do this within the init hook: add_action( ‘init’, ‘toggle_box_init’ … Read more
I think this should work if you are wrapping the condition around the arguments, and not the menu link itself: if(!is_user_logged_in()) { $args = array( ‘exclude’ => ‘100,110,145’ ); } else { $args = array( ‘exclude’ => ‘100,145’ ); } wp_list_pages( $args );