The forums are closed and will be removed when we launch our new site.
Looking for support? You can access the support system via your account.
Hartley Stone
Forum Replies Created
-
Hartley Stone in reply to:
Exclude first 5 posts from results(Private) October 21, 2016 at 9:42 am #65532Yeah that is what I am doing but with not success.
I wouldn’t know how to use array_slice in this particular case.
Do you have any idea?
Thanks
Marco
Hartley Stone in reply to:
Exclude first 5 posts from results(Private) October 20, 2016 at 5:11 pm #65410Hi Trevor,
This is my code:
<?php
$posts_5 = $query->query[‘post__in’];
$posts_5 = array_reverse($posts_5);
$query->query_vars[‘post__not_in’] = array($post_[0],$post_[1],$post_[2],$post_[3],$post_[4]);if ( $query->have_posts() )
{
while ($query->have_posts())
{
$query->the_post();
?>
<div class=”col-md-6 col-sm-12 col-xs-12 result_col clearfix”>
<?php if ( has_post_thumbnail() ) { ?>
‘>
<div class=”more_post_thumb col-lg-4 col-md-5 col-sm-6 col-xs-4″>
<?php the_post_thumbnail(‘medium’, array(‘class’ => ‘img-responsive’)); ?>
</div>
<?php }else{?>
‘>
<div class=”more_post_thumb col-lg-4 col-md-5 col-sm-6 col-xs-4″>
/imgs/Thumb-Nail-News_Lara.png” class=”img-responsive wp-post-image” alt=”Lara_news”>
</div>
<?php } ?>
<div class=”col-lg-8 col-md-7 col-sm-6 col-xs-8″>
<p><?php echo get_the_date(‘d-m-Y’); ?></p>
‘><p class=’color-lara’><?php the_title(); ?></p>
<p class=”><?php echo substr(get_the_content(), 0, 30); ?> …</p>
‘>more
</div>
</div>
<?php
}
}
else
{
echo “<p class=’text-center login-error’>No Results Found.</p>”;
}
?>
<div class=”pagination”>
<?php
if (function_exists(“pagination”)) {
pagination($query->max_num_pages);
}
?>
</div>I am modifying the query like so :
$query->query_vars[‘post__not_in’] = array($post_[0],$post_[1],$post_[2],$post_[3],$post_[4]);but it does not seem to work.
Thanks
Marco
Hartley Stone in reply to:
Migration issues(Private) October 18, 2016 at 12:44 pm #64777Yeah it is all fixed now.
Thank you very much for your help
Marco
Hartley Stone in reply to:
Migration issues(Private) October 18, 2016 at 12:18 pm #64764Hi Trevor,
Thanks for spotting that.
Of course that was the issue.
Marco
Hartley Stone in reply to:
Migration issues(Private) October 18, 2016 at 11:04 am #64750Here’s the url : http://www.hmgaerospace.com.gridhosted.co.uk/lara/news/
at the bottom of the page if you open the more news accordion there is the search and filter form.
I do want to speak on Skype with you although it does not seem to work. Yours shows offline too.
Thanks
Marco
Hartley Stone in reply to:
Migration issues(Private) October 18, 2016 at 10:51 am #64742I am not receiving any call on Skype.
Hartley Stone in reply to:
Migration issues(Private) October 18, 2016 at 10:17 am #64715Hi Trevor,
Any idea why the ajax submission is not working. It was working fine before but not after the merge.
Hartley Stone in reply to:
Migration issues(Private) October 18, 2016 at 9:45 am #64711Hi Trevor,
It looks like you are offline on Skype.
I have managed to migrate everything and this time everything is working but the ajax bit.
Hope you can help me with this.
Thanks
Marco
Hartley Stone in reply to:
Migration issues(Private) October 17, 2016 at 3:07 pm #64524Hi Trevor,
Are you available this afternoon or even tomorrow to see this together over Skype.
Many thanks
Marco
Hartley Stone in reply to:
Migration issues(Private) October 12, 2016 at 12:14 pm #63492I added you on Skype for business but you are not online.
-
AuthorPosts