Remove link from Page name in navigation bar
Use Page Links To plugin by Mark Jaquith. Edit top level page and in section Page Links To select An alternate URL and enter # as an URL.
Use Page Links To plugin by Mark Jaquith. Edit top level page and in section Page Links To select An alternate URL and enter # as an URL.
I believe I found the solution here: http://codex.wordpress.org/Function_Reference/wp_set_object_terms wp_set_object_terms( $post_id, $terms, $taxonomy, $append ); wp_set_object_terms( 4, $cat_id, ‘example_product_cat’); This is still placed inside of the install.php file. If there is a better solution, please add! Thanks. Roc.
Ohh Sorry, It was my mistake! It was caching problem. Whoever facing such problems, just try to disable Database Cache(of Total Cache) plugin. This caching is now pre-inistalled in all your new wordpress installation.
Correct serialized string will be: a:1:{i:0;a:3:{s:4:”name”;s:56:”Song → Black Meen : “So Clean (feat. Dullaah Jin)””;s:4:”file”;s:93:”http://localhost/peace.worldwide/wp-content/uploads/2013/05/03-So-Clean-feat.-Dullaah-Jin.mp3″;s:9:”condition”;s:3:”all”;}} The second long string ( value of key “file” ) had incorrect lenght 98 which should be 93. You might ask why the first long string ( value of key “name” ) has lenght of 56. It looks like it … Read more
Your widget method does not echo anything. If you want content to show up the widget needs to echo content. function widget( $args, $instance ) { extract( $args ); /* Our variables from the widget settings. */ if(isset($instance)) { if( isset( $instance[ ‘title’ ] ) ) { $title = apply_filters( ‘widget_title’, $instance[ ‘title’ ] ); … Read more
Compare the post_date with the current time and then test if the difference is greater than one day: is_admin() or add_action( ‘the_post’, function( $post ) { if ( ! is_singular() or ! is_main_query() ) return; // now minus last mod time in seconds $diff = time() – mysql2date( ‘U’, $post->post_date ); if ( DAY_IN_SECONDS >= … Read more
Multiple gallery thumnbnails on one page
Create a custom link and drag it to the menu:
Reload meta box content with AJAX
Use get_the_title(): $page = get_page_by_title( ‘About’ ); $title = get_the_title( $page ); You could also use $page->post_title, but get_the_title() will let plugins access the title, which sometimes quite useful.