404 on child page template
If you’re working with custom post types and keep getting 404 errors, you often just need to re-save your site’s permalinks under Settings > Permalinks. Try that and let me know if it works.
If you’re working with custom post types and keep getting 404 errors, you often just need to re-save your site’s permalinks under Settings > Permalinks. Try that and let me know if it works.
I think, this is not possible in the current version, is a old ticket in the trac. But you can add a other editor via plugin and it works, like WPide
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.
If you look at the default wpsc-products_page.php template, it uses while (wpsc_have_products()) : wpsc_the_product(); instead of have_posts() and the_posts() to setup the loop. The wpsc_the_product() function sets up a global $wpsc_variations object that the product variation functions use. I think in order to use wpsc_the_product() you need your query to be the global $wp_query, but … Read more
The following code needs to placed in the functions.php file of any theme that has a replacement mystery man avatar. Adding it to bp-custom.php will not work in this instance. <?php // Use a differnt image than default mystery man function bp_custom_set_avatar_constants() { define( ‘BP_AVATAR_DEFAULT’, get_stylesheet_directory_uri() . ‘/images/mystery-man.jpg’ ); define( ‘BP_AVATAR_DEFAULT_THUMB’, get_stylesheet_directory_uri() . ‘/images/mystery-man-50.jpg’ ); … Read more
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
There are several ways to do this. The easiest way is to simply add html/css in the editor (set it to html). Do not use the visual editor afterwards! As an alternative you can use shortcodes to add custom html/css to your output Add custom classes to tinymce, tutorial Extra Post snippets
You need next_post_link and previous_post_link, not next_posts_link and previous_posts_link. See the plural on the last two? The ones with the ‘s’ are for archive pagination. The ones without it are for single post to post pagination.