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.
Laura Camellini
Forum Replies Created
-
Laura Camellini in reply to:
Get the index of current post in search query(Private) May 19, 2017 at 11:33 am #109938OH NO,
didn’t solve anything… please let me know…Laura Camellini in reply to:
Get the index of current post in search query(Private) May 19, 2017 at 11:32 am #109936solved with that last code sample 🙂
Laura Camellini in reply to:
Get the index of current post in search query(Private) May 19, 2017 at 11:29 am #109934while ( $sf_current_query->have_posts() ) : $sf_current_query->the_post(); $index = $sf_current_query->current_post + 1; ?> section:nth-child(<?php echo $index; ?>) > .category { background:url('<?php the_post_thumbnail_url('large'); ?>'); box-shadow: inset 0px 0px 400px 110px rgba(0, 0, 0, .7); } <?php endwhile;
Laura Camellini in reply to:
Get the index of current post in search query(Private) May 19, 2017 at 11:21 am #109929Sample of the query I’m using in other templates and that must be reused for styling the sf_query resuslt:
`<?php while ( $wp_query->have_posts() ) : $wp_query->the_post();
$index = $wp_query->current_post + 1; ?>
section:nth-child(<?php echo $index; ?>) > .category {
background:url(‘<?php the_post_thumbnail_url(‘large’); ?>’);
box-shadow: inset 0px 0px 400px 110px rgba(0, 0, 0, .7);
}
<?php endwhile; ?>Laura Camellini in reply to:
submit form from external button(Private) January 10, 2017 at 2:43 pm #81125Sure you can, and thanks for the tip, and please take care of how your documentation is written I could have retrieved this info by myself if it was more organized.
Thanks a lot anyways!!Laura Camellini in reply to:
submit form from external button(Private) January 10, 2017 at 2:10 pm #81119Thanks Trevor 🙂
Laura Camellini in reply to:
filter authors on results(Private) December 6, 2016 at 2:45 pm #74342Sure, thanks and sorry for the late answer…
Laura Camellini in reply to:
filter authors on results(Private) December 6, 2016 at 2:38 pm #74338Thanks ross,
the code works fine thanks to the variable name change (my mistake), the meta data was an array (already tested) so the point was not the problem.
Hope this ticket will help you developing your new user meta feature about which Trevor told me in another thread.
Thanks a lot for your help.
Regards,
LauraCLaura Camellini in reply to:
filter authors on results(Private) December 1, 2016 at 10:02 am #73421I’m testing your code Ross, and appreciate your help a lot.
Thanks for your time, I’ll let you know if it worked.Laura Camellini in reply to:
filter authors on results(Private) November 30, 2016 at 11:01 am #73107here is the link from your documentation:
Here is a sample of pre_get_posts() usage to add arguments to the search query:
https://support.searchandfilter.com/forums/topic/post-types-in-alphabetical-order/
Thanks Trevor
-
AuthorPosts