yoell
Odpowiedź forum utworzona
Zobacz 5 odpowiedzi - od 1 do 5 (z 5 łącznie)
-
Forum: Wtyczki
W odpowiedzi na: Yoast WordPress SEO ver. 1.3.4.4- Główne słowo kluczowe- problemPosłuchałem Krzyśka i zrezygnowałem z justowania tekstu. Dobrze czasem poczytać mądrzejszych 🙂
Forum: Motywy
W odpowiedzi na: Magazine Theme – Zaginione miniaturkiDzięki za wszelkie info.
Znalazła się winna. Wtyczka Automatic Youtube Video Posts ver. 3.0.4 spowodowała rozjechanie się szablonu. Na najnowszym WP też nie chodzi, przynajmniej u mnie.Forum: Motywy
W odpowiedzi na: Magazine Theme – Zaginione miniaturkiedytuję w kokpicie WP.
… automatycznie się pojawiaForum: Motywy
W odpowiedzi na: Magazine Theme – Zaginione miniaturkiMiniaturę wpisu mam ustawioną na 100%
Aktualizowałem różne wtyczki. Rozumiem, że to mogło spowodować rozjechanie się szablonu 🙁
Chyba nie zadziałało, albo coś źle robię 🙁
Po podmianie home.php wygląda tak:<?php get_header(); ?> <div id="contenthome"> <div id="homeslider"> <ul id="slider1"> <?php $wp_query = new WP_Query(array('cat'=>of_get_option('category_slider'),'showposts'=>of_get_option('postnumber_slider'))); ?> <?php if($wp_query->have_posts()) : while($wp_query->have_posts()) : $wp_query->the_post(); ?> <?php $meta_box = get_post_custom($post->ID); $video = $meta_box['custom_meta_video'][0]; ?> <?php global $more; $more = 0; ?> <li> <?php if ( $video ) : ?> <div class="feature_video"><?php echo $video; ?></div> <?php else: ?> <a>" rel="bookmark"><?php the_post_thumbnail( 'home-feature' ); ?></a> <?php endif; ?> <div class="bannercontent"> <h1><a>" rel="bookmark"><?php the_title(); ?></a></h1> <h3><?php the_time(__("l, F j, Y", 'organicthemes')); ?></h3> <?php the_excerpt(); ?> <a>" rel="bookmark"><?php _e("Read More", 'organicthemes'); ?></a> </div> </li> <?php endwhile; ?> <?php else : // do not delete ?> <?php endif; // do not delete ?> </div> <div id="homepage"> <?php if(of_get_option('display_home1column') == 'true') { ?> <div id="one_column"> <h3><?php echo cat_id_to_name(of_get_option('category_home1column')); ?></h3> <?php $wp_query = new WP_Query(array('cat'=>of_get_option('category_home1column'),'showposts'=>of_get_option('postnumber_home1column'),'paged'=>$paged)); ?> <?php if($wp_query->have_posts()) : while($wp_query->have_posts()) : $wp_query->the_post(); ?> <?php $meta_box = get_post_custom($post->ID); $video = $meta_box['custom_meta_video'][0]; ?> <?php global $more; $more = 0; ?> <div class="homecontent one_column"> <?php if ( $video ) : ?> <div class="video"><?php echo $video; ?></div> <?php else: ?> <a>" href="<?php the_permalink(); ?>" class="thumbnail check" rel="bookmark"><?php the_post_thumbnail( 'thumbnail' ); ?></a> <?php endif; ?> <div class="homeinfo"> <div class="datebox"> <div class="month"><?php the_time(__("M", 'organicthemes')) ?></div> <div class="day"><?php the_time(__("j", 'organicthemes')) ?></div> </div> <h2><a>" rel="bookmark"><?php the_title(); ?></a></h2> <div class="postauthor"> <p><?php _e("Posted by", 'organicthemes'); ?> <?php the_author_posts_link(); ?> · <a>#respond"><?php comments_number(__("Leave a Comment", 'organicthemes'), __("1 Comment", 'organicthemes'), __("% Comments", 'organicthemes')); ?></a></p> </div> <div class="excerpt"><?php the_excerpt(); ?></div> <div class="social_links"> <div class="tweet_btn"> <a href="http://twitter.com/share" class="twitter-share-button" data-url="<?php the_permalink(); ?>" data-via="<?php echo of_get_option('social_twitter_url'); ?>" data-text="<?php the_title(); ?>" data-related="" data-count="horizontal"><?php _e("Tweet", 'organicthemes'); ?> </div> <div class="like_btn"> <fb:like href="<?php echo urlencode(get_permalink($post->ID)); ?>" layout="button_count" show_faces="false" width="100" font=""></fb:like> </div> <div class="plus_btn"> <g:plusone size="medium"></g:plusone> </div> </div> <a>" rel="bookmark"><?php _e("Read More", 'organicthemes'); ?></a> </div> </div> <?php endwhile; ?> <div class="pagination"> <?php if (function_exists("number_paginate")) { number_paginate(); } ?> </div> <?php else : // do not delete ?> <?php endif; // do not delete ?> </div> <?php } else { ?> <?php } ?> <?php if(of_get_option('display_home2column') == 'true') { ?> <div id="two_column"> <h3><?php echo cat_id_to_name(of_get_option('category_home2column')); ?></h3> <?php $wp_query = new WP_Query(array('cat'=>of_get_option('category_home2column'),'showposts'=>of_get_option('postnumber_home2column'),'paged'=>$paged)); ?> <?php $post_class = 'first'; ?> <?php if($wp_query->have_posts()) : while($wp_query->have_posts()) : $wp_query->the_post(); ?> <?php $meta_box = get_post_custom($post->ID); $video = $meta_box['custom_meta_video'][0]; ?> <?php global $more; $more = 0; ?> <?php $first_or_second = ('first'==$first_or_second) ? 'second' : 'first'; ?> <div class="homecontent two_column <?php echo $first_or_second; ?>"> <?php if ( $video ) : ?> <div class="video"><?php echo $video; ?></div> <?php else: ?> <a>" rel="bookmark"><?php the_post_thumbnail( 'home-thumbnail' ); ?></a> <?php endif; ?> <div class="homeinfo"> <div class="datebox"> <div class="month"><?php the_time(__("M", 'organicthemes')) ?></div> <div class="day"><?php the_time(__("j", 'organicthemes')) ?></div> </div> <h2><a>" rel="bookmark"><?php the_title(); ?></a></h2> <div class="postauthor"> <p><?php _e("Posted by", 'organicthemes'); ?> <?php the_author_posts_link(); ?> · <a>#respond"><?php comments_number(__("Leave a Comment", 'organicthemes'), __("1 Comment", 'organicthemes'), __("% Comments", 'organicthemes')); ?></a></p> </div> <div class="excerpt"><?php the_excerpt(); ?></div> <div class="social_links"> <div class="tweet_btn"> <a href="http://twitter.com/share" class="twitter-share-button" data-url="<?php the_permalink(); ?>" data-via="<?php echo of_get_option('social_twitter_url'); ?>" data-text="<?php the_title(); ?>" data-related="" data-count="horizontal"><?php _e("Tweet", 'organicthemes'); ?> </div> <div class="like_btn"> <fb:like href="<?php echo urlencode(get_permalink($post->ID)); ?>" layout="button_count" show_faces="false" width="100" font=""></fb:like> </div> <div class="plus_btn"> <g:plusone size="medium"></g:plusone> </div> </div> </div> </div> <?php endwhile; ?> <div class="pagination"> <?php if (function_exists("number_paginate")) { number_paginate(); } ?> </div> <?php else : // do not delete ?> <?php endif; // do not delete ?> </div> <?php } else { ?> <?php } ?> </div> <?php if(of_get_option('display_homeside') == 'true') { ?> <?php include(TEMPLATEPATH."/sidebar_home.php");?> <?php } else { ?> <?php } ?> </div> <?php get_footer(); ?>Forum: Motywy
W odpowiedzi na: Magazine Theme – Zaginione miniaturkiZaskoczyło mnie to, że nic nie zmieniałem w kodzie (bo się na tym nie znam). Wieczorem było OK, rano jest kwas 🙁
HOME:
<?php get_header(); ?> <div id="contenthome"> <div id="homeslider"> <ul id="slider1"> <?php $wp_query = new WP_Query(array('cat'=>of_get_option('category_slider'),'showposts'=>of_get_option('postnumber_slider'))); ?> <?php if($wp_query->have_posts()) : while($wp_query->have_posts()) : $wp_query->the_post(); ?> <?php $meta_box = get_post_custom($post->ID); $video = $meta_box['custom_meta_video'][0]; ?> <?php global $more; $more = 0; ?> <li> <?php if ( $video ) : ?> <div class="feature_video"><?php echo $video; ?></div> <?php else: ?> <a>" rel="bookmark"><?php the_post_thumbnail( 'home-feature' ); ?></a> <?php endif; ?> <div class="bannercontent"> <h1><a>" rel="bookmark"><?php the_title(); ?></a></h1> <h3><?php the_time(__("l, F j, Y", 'organicthemes')); ?></h3> <?php the_excerpt(); ?> <a>" rel="bookmark"><?php _e("Read More", 'organicthemes'); ?></a> </div> </li> <?php endwhile; ?> <?php else : // do not delete ?> <?php endif; // do not delete ?> </div> <div id="homepage"> <?php if(of_get_option('display_home1column') == 'true') { ?> <div id="one_column"> <h3><?php echo cat_id_to_name(of_get_option('category_home1column')); ?></h3> <?php $wp_query = new WP_Query(array('cat'=>of_get_option('category_home1column'),'showposts'=>of_get_option('postnumber_home1column'),'paged'=>$paged)); ?> <?php if($wp_query->have_posts()) : while($wp_query->have_posts()) : $wp_query->the_post(); ?> <?php $meta_box = get_post_custom($post->ID); $video = $meta_box['custom_meta_video'][0]; ?> <?php global $more; $more = 0; ?> <div class="homecontent one_column"> <?php if ( $video ) : ?> <div class="video"><?php echo $video; ?></div> <?php else: ?> <a>" rel="bookmark"><?php the_post_thumbnail( 'home-thumbnail' ); ?></a> <?php endif; ?> <div class="homeinfo"> <div class="datebox"> <div class="month"><?php the_time(__("M", 'organicthemes')) ?></div> <div class="day"><?php the_time(__("j", 'organicthemes')) ?></div> </div> <h2><a>" rel="bookmark"><?php the_title(); ?></a></h2> <div class="postauthor"> <p><?php _e("Posted by", 'organicthemes'); ?> <?php the_author_posts_link(); ?> · <a>#respond"><?php comments_number(__("Leave a Comment", 'organicthemes'), __("1 Comment", 'organicthemes'), __("% Comments", 'organicthemes')); ?></a></p> </div> <div class="excerpt"><?php the_excerpt(); ?></div> <div class="social_links"> <div class="tweet_btn"> <a href="http://twitter.com/share" class="twitter-share-button" data-url="<?php the_permalink(); ?>" data-via="<?php echo of_get_option('social_twitter_url'); ?>" data-text="<?php the_title(); ?>" data-related="" data-count="horizontal"><?php _e("Tweet", 'organicthemes'); ?> </div> <div class="like_btn"> <fb:like href="<?php echo urlencode(get_permalink($post->ID)); ?>" layout="button_count" show_faces="false" width="100" font=""></fb:like> </div> <div class="plus_btn"> <g:plusone size="medium"></g:plusone> </div> </div> <a>" rel="bookmark"><?php _e("Read More", 'organicthemes'); ?></a> </div> </div> <?php endwhile; ?> <div class="pagination"> <?php if (function_exists("number_paginate")) { number_paginate(); } ?> </div> <?php else : // do not delete ?> <?php endif; // do not delete ?> </div> <?php } else { ?> <?php } ?> <?php if(of_get_option('display_home2column') == 'true') { ?> <div id="two_column"> <h3><?php echo cat_id_to_name(of_get_option('category_home2column')); ?></h3> <?php $wp_query = new WP_Query(array('cat'=>of_get_option('category_home2column'),'showposts'=>of_get_option('postnumber_home2column'),'paged'=>$paged)); ?> <?php $post_class = 'first'; ?> <?php if($wp_query->have_posts()) : while($wp_query->have_posts()) : $wp_query->the_post(); ?> <?php $meta_box = get_post_custom($post->ID); $video = $meta_box['custom_meta_video'][0]; ?> <?php global $more; $more = 0; ?> <?php $first_or_second = ('first'==$first_or_second) ? 'second' : 'first'; ?> <div class="homecontent two_column <?php echo $first_or_second; ?>"> <?php if ( $video ) : ?> <div class="video"><?php echo $video; ?></div> <?php else: ?> <a>" rel="bookmark"><?php the_post_thumbnail( 'home-thumbnail' ); ?></a> <?php endif; ?> <div class="homeinfo"> <div class="datebox"> <div class="month"><?php the_time(__("M", 'organicthemes')) ?></div> <div class="day"><?php the_time(__("j", 'organicthemes')) ?></div> </div> <h2><a>" rel="bookmark"><?php the_title(); ?></a></h2> <div class="postauthor"> <p><?php _e("Posted by", 'organicthemes'); ?> <?php the_author_posts_link(); ?> · <a>#respond"><?php comments_number(__("Leave a Comment", 'organicthemes'), __("1 Comment", 'organicthemes'), __("% Comments", 'organicthemes')); ?></a></p> </div> <div class="excerpt"><?php the_excerpt(); ?></div> <div class="social_links"> <div class="tweet_btn"> <a href="http://twitter.com/share" class="twitter-share-button" data-url="<?php the_permalink(); ?>" data-via="<?php echo of_get_option('social_twitter_url'); ?>" data-text="<?php the_title(); ?>" data-related="" data-count="horizontal"><?php _e("Tweet", 'organicthemes'); ?> </div> <div class="like_btn"> <fb:like href="<?php echo urlencode(get_permalink($post->ID)); ?>" layout="button_count" show_faces="false" width="100" font=""></fb:like> </div> <div class="plus_btn"> <g:plusone size="medium"></g:plusone> </div> </div> </div> </div> <?php endwhile; ?> <div class="pagination"> <?php if (function_exists("number_paginate")) { number_paginate(); } ?> </div> <?php else : // do not delete ?> <?php endif; // do not delete ?> </div> <?php } else { ?> <?php } ?> </div> <?php if(of_get_option('display_homeside') == 'true') { ?> <?php include(TEMPLATEPATH."/sidebar_home.php");?> <?php } else { ?> <?php } ?> </div> <?php get_footer(); ?> INDEX: <?php get_header(); ?> <div id="container"> <div id="content" class="left"> <div class="postarea"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="posttitle"> <h1><?php the_title(); ?></h1> <div class="postauthor"> <p><?php _e("Posted by", 'organicthemes'); ?> <?php the_author_posts_link(); ?> <?php _e("on", 'organicthemes'); ?> <?php the_time(__("l, F j, Y", 'organicthemes')); ?> · <a>#respond"><?php comments_number(__("Leave a Comment", 'organicthemes'), __("1 Comment", 'organicthemes'), __("% Comments", 'organicthemes')); ?></a> <?php edit_post_link(__("(Edit)", 'organicthemes'), '', ''); ?></p> </div> </div> <?php the_content(__("Read More", 'organicthemes')); ?><div style="clear:both;"></div> <?php trackback_rdf(); ?> <div class="postmeta"> <p><?php _e("Filed under", 'organicthemes'); ?> <?php the_category(', ') ?> · <?php _e("Tagged with", 'organicthemes'); ?> <?php the_tags('') ?></p> </div> </div> <div class="postcomments"> <?php comments_template('',true); ?> </div> <?php endwhile; else: ?> <p><?php _e("Sorry, no posts matched your criteria.", 'organicthemes'); ?></p> <?php endif; ?> </div> <?php include(TEMPLATEPATH."/sidebar_right.php");?> </div> <?php get_footer(); ?>
Zobacz 5 odpowiedzi - od 1 do 5 (z 5 łącznie)