sentux
Forum Replies Created
-
PS Just made a small donation to your WP site as a thank you and to support this plugin.
http://wpdreamer.com/donate/Fixed, fixed an fixed!!
The update has fixed the 2 projects that i was having trouble with and the remaining 23 have updated perfectly!Really do appreciate the help and its a great plugin! I was worried i was going to have to change to a new one 🙁
Thanks Again Rachel
Hi Thanks Rachel, but this doesn’t explain why the sites have stopped displaying the custom post types even after uploading the older version of the plugin?
What in the new plugin could have caused a DB change or something that would effect the old plugin version?
Appreciate the help on this.
I am indeed.
This is the 2nd site which it has effected even though i reverted to the old version of the plugin which is weird?There is no error showing now just that the custom post types aren’t showing now in the front end?
No sorry. Nothing changed.
Strangely, when i revert back to the old 1.3.1 version, viewing the custom posts stops working on the front end?
http://www.ims.9gdemo.co.uk/projects doesnt work now?
The loop code is as follows:
<?php if (have_posts()) :?> <?php /// featured project (latest project) $events_query = new WP_Query(array('post_type'=>"projects",'posts_per_page'=>1)); if ($events_query->have_posts()) : while ($events_query->have_posts()) : $events_query->the_post(); $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' ); ?> <div class="full-row" id="project-featured-row" style="background-image: url('<?php echo $image[0]; ?>')"> <div class="featured-content"> <div class="container"> <h3><?php the_title(); ?></h3> <?php the_excerpt(); ?> <a href="<?php the_permalink() ?>" class="text-button">Read more...</a> </div><!--container--> </div><!--featured content--> </div><!--featured project--> <?php endwhile; wp_reset_postdata(); else : ?> None Available. <?php endif; // END?> <ul class="cbp-rfgrid"> <?php $args = array('post_type'=>"projects", 'offset'=> 1 ); $myposts = get_posts( $args ); foreach ( $myposts as $post ) : setup_postdata( $post ); ?> <li> <section class="project-container"> <a href="<?php the_permalink() ?>"> <?php the_post_thumbnail('project-archive-thb'); ?> <div class="project-archive-title"> <h3><?php the_title(); ?></h3> <div class="project-button"> <a href="<?php the_permalink() ?>" class="button">View project</span> </div> </div><!-- project-archive-title --> </a> </section> </li> <?php endforeach; wp_reset_postdata();?> </ul><!--archive projects--> <?php else: // If no news ?> <div class="full-row"> <div class="featured-content"> <div class="container"> <h1>No Projects Available</h1> <p>Please come back later...</p> </div><!--container--> </div><!--featured content--> </div><!--featured project--> <? endif; //END LOOP ?>Hi Thanks for replying
There is a T_function error something about closing bracket or something on line 1167 (cant remember the exact number).
I just upgraded a second site and the same thing happened so i have replaced with the older version.