Sticky menu for WP custom menubars

What you could do is the following: 1) Make a javascript-file and put the following content into it: $(function(){ var stickyHeaderTop = $(‘#stickyheader’).offset().top; $(window).scroll(function(){ if( $(window).scrollTop() > stickyHeaderTop ) { $(‘#stickyheader’).css({position: ‘fixed’, top: ‘0px’}); } else { $(‘#stickyheader’).css({position: ‘static’, top: ‘0px’}); } }); }); 2) Save this file in your theme folder as (for example) … Read more

Featured Image If Else Condition

Change your code to: <div id=’xpro_shell_text’ > <?php if ( has_post_thumbnail( $post->ID ) ) : $imageInfo = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), ‘single-post-thumbnail’ ); $imageUrl = $imageInfo[0]; else: $imageUrl = get_template_directory() . ‘PATH TO YOUR DEFAULT IMAGE’; endif; ?> <div id=”xpro_shell_content_header” class=”content_about_us_header white” style=”background:url(‘<?php echo $imageUrl; ?>’) no-repeat;”> <div id=’xpro_shell_content_header_blurb’> <h1 class=”greenHeader cufon_reg”> <?php the_title(); ?> … Read more

Widget title markup in register_sidebar

If that is all of your “title” code, you aren’t echoing $before_title and $after_title. Look at how the default text widget, which you reference, does it: 399 function widget( $args, $instance ) { 400 extract($args); 401 $title = apply_filters( ‘widget_title’, empty( $instance[‘title’] ) ? ” : $instance[‘title’], $instance, $this->id_base ); 402 $text = apply_filters( ‘widget_text’, … Read more

create Custom field for tv series

Use custom posts types with a hierarchical structure. So the Parent would be the Season 1 and then the child would be episodes. There are some plugins that build custom posts types with hierarchical structures, or reference codex. http://codex.wordpress.org/Function_Reference/register_post_type

How to stop displaying the Id without losing the functionality

the_author_meta displays the data. That is, it echos the data to the screen. From the Codex entry for that function: NOTE: Use get_the_author_meta() if you need to return (not display) the information. So, use get_the_author_meta() instead. There is a somewhat reliable pattern in WordPress function naming whereby functions starting with the_ echo data to the … Read more