separate home page into separate pages
..are they using the latest version of WordPress? If not, upgrade. Also, see if the problem continues after switching to the default “Twenty Eleven” WordPress theme.
..are they using the latest version of WordPress? If not, upgrade. Also, see if the problem continues after switching to the default “Twenty Eleven” WordPress theme.
The loop in your code: <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> is saying “if I have posts, display them all – by the declared # per page” So you need to modify the loop to only display the content you need. Can you provide some information on where … Read more
In your theme’s functions.php, write the following code: <?php /* ENABLING CUSTOM MENUS ————————————————– */ //add_theme_support( ‘menus’ ); register_nav_menus( array( ‘primary’=>__(‘Primary Menu’), ‘secondary’=>__(‘Secondary Menu’), ) ); ?> It’ll register two custom menu area for your theme. Then you need to achieve it with in header.php: <?php wp_nav_menu ( array ( ‘theme_location’=>’primary’, ‘fallback_cb’=>”) ); ?> This … Read more
Put everything between <script> & </script> in a separate file. Then use wp_enqueue_script with the correct path of the file & dependencies to false. After that you can use only <a href=”https://twitter.com/share” class=”twitter-share-button”>Tweet</a> to add the tweet button.
Solution I used the wordpress-theme-showcaseplugin to show a list of themes in the home page, and to can easily browse the theme that is currently preview I changed the way wordpress handle the permalinks. In the wp-includes/link-template.php file in get_permalink function added this code if(isset($_GET[‘preview_theme’])){ $permalink = home_url(‘?preview_theme=”.$_GET[“preview_theme’] .’&p=’ . $post->ID); }else{ $permalink = home_url(‘?p=’ … Read more
One can do that by copying imagebrowser.php from /wp-content/plugins/nextgen-gallery/view/ to yourthemedirectory/nggallery.php If you want to customise other templates, you can do the same too. Some more information can also be found here.
While comparing numbers in meta value use “meta_value_num” instead of “meta_value” ‘meta_value_num’ – Order by numeric meta value (available with Version 2.8). Also note that a ‘meta_key=keyname’ must also be present in the query. This value allows for numerical sorting as noted above in ‘meta_value’. Reference
The Labels are for the use in the Adminsection of your Website. If you want to change the slug in the URL of your CPT, use this values in your register_post_type function call. $rewrite = array( ‘slug’ => __( ‘cities’, ‘your_textdomain’ ), //…… ) $args = array( ‘rewrite’ => $rewrite, //…… );
What you can do is remove the post formats meta box and adding again in another position. If you put this in functions.php: // remove post format meta box function remove_post_format_box() { remove_meta_box( ‘formatdiv’ , ‘post’ , ‘side’ ); } add_action( ‘admin_menu’ , ‘remove_post_format_box’ ); // Add post format meta box to a new position … Read more
The settings for themes is in a array, serialized data in the database. It is not easy to change this inside the database. See for the options Table and search for the entry theme_mods_twentyten.