kitan
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Error: Trying to get property of non-object in post-templateThanks for replay.
I found solution for my issue.
1. I created new page of error 404.
2. I deleted file .htaccess.
3. Next I add /%postaname%/ in permalinks settings.
4. Delete functions for my custom post and taxonomies from functions.php
4. Remove the sitemap. > Save.
5. Remove strip category > Save.
6. Add sitemap > Save.
7. Add strip category > Save.For now, work, but I have problem with in my functions of custom post and taxonomies
For SEO I have plugin WP SEO by Yoast.
Forum: Fixing WordPress
In reply to: Error: Trying to get property of non-object in post-templateAnyone help to me?
Forum: Fixing WordPress
In reply to: Error: Trying to get property of non-object in post-templatepage.php:
<?php get_header('pages'); ?> <div class="wide-light"> <div class="wrapper"> <?php get_sidebar(); ?> <section id="wrapper-main"> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <header><h1 class="caption"><?php the_title(); ?></h1></header> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <?php the_content(); ?> </article> <footer><?php the_tags(); ?></footer> <?php endwhile; ?> <?php endif; ?> </section> <?php get_footer('pages'); ?>
sidebar.php:
<aside id="wrapper-sidebar" role="sidebar"> <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Panel Boczny')) : ?> <?php endif; ?> </aside>
footer-pages.php:
<?php include_once( 'inc/section-partnerzy.php' ); ?> </div> </div> <footer id="footer" class="wide-dark"> <div class="wrapper"> <?php wp_nav_menu( array( 'theme_location' => 'footer', 'container' => 'nav', 'container_id' => 'bottom-menu', 'sort_column' => 'menu_order', 'depth' => 0, ) ); ?> <p id="copy" class="clear" role="foottext">? 2010-<?php echo date('Y'); ?> Copyright by <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php bloginfo( 'name' ); ?> - <?php bloginfo( 'description' ); ?>"><?php bloginfo('title'); ?></a></p> </div> </footer> <div id="back-top"> <a href="#logo" title="Back to Top"><span></span></a> </div> <?php wp_footer(); ?> </body></html>
section-partnerzy.php:
<section class="widget" id="brands"> <h4 class="caption">Nasi partnerzy</h4> <?php // the query $args = array( 'post_type' => 'partner', 'partnerzy_kategorie' => 'Producenci', 'orderby' => 'rand', 'showposts' => '-1', ); $the_query = new WP_Query( $args ); ?> <?php if ( $the_query->have_posts() ) : ?> <ul id="brands-img"> <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?> <li><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_post_thumbnail( array(250,250) ); ?></a></li> <?php endwhile; ?> </ul> <script type="text/javascript"> $(window).load(function() { $("#brands-img").flexisel({ visibleItems: 4, animationSpeed: 1000, autoPlay: true, autoPlaySpeed: 3000, pauseOnHover: true, enableResponsiveBreakpoints: true, responsiveBreakpoints: { portrait: { changePoint:480, visibleItems: 1 }, landscape: { changePoint:640, visibleItems: 2 }, tablet: { changePoint:768, visibleItems: 3 } } }); }); </script> <?php wp_reset_postdata(); ?> <?php else: ?> <p><?php _e( 'Sorry, no posts matched your criteria.' ); ?></p> <?php endif; ?> </section>
Forum: Fixing WordPress
In reply to: Error: Trying to get property of non-object in post-templateI turned on the Debug mode and in debug.log I have this:
[11-Oct-2013 11:11:48] PHP Notice: Trying to get property of non-object in /wp-includes/post-template.php on line 29 [11-Oct-2013 11:11:48] PHP Notice: Trying to get property of non-object in /wp-includes/post-template.php on line 209
Forum: Fixing WordPress
In reply to: Error: Trying to get property of non-object in post-templateThis is my theme, which I created.
I created already many themes for wordpress, but I’ve never had such a problem with WP. I think so this is a problem with my theme, but I don’t know where is it a problem.
Forum: Fixing WordPress
In reply to: Error: Trying to get property of non-object in post-templateThanks for replay.
No, I haven’t got multisite mode.
On the theme “Twenty Thirteen” everything is working.
I was doing everything what you have written and again I have the same error only with the my theme.Forum: Plugins
In reply to: [Contact Form 7 Modules] Module generator of vCardNot yet…
hi,
I had this same problem on my site…
I solved it in a way that I removed this line of code
Forum: Plugins
In reply to: [YouTube SimpleGallery] Huge Blank Space in post before Video Thumbsok, I found a solution. I removed some lines in css file.
in several places removed: position: relative.