Hi
I tried editing, I added this to get the post id’s from the current category:
$taxcategory = get_the_category();
$idcategory = $taxcategory[0]->cat_ID;
$post_ids_related = get_posts(array(
'numberposts' => -1, // get all posts.
'tax_query' => array(
array(
'taxonomy' => 'category',
'field' => 'id',
'terms' => $idcategory,
),
),
'fields' => 'ids', // Only get post IDs
));
And then changed the following to:
$portfolio_items = new WP_Query(array(
'post_type' => 'fw-portfolio',
'posts_per_page' => 4,
'orderby' => 'rand',
'post_status' => 'publish',
'post__in' => $post_ids_related
));
but it doesn’t seem to work… Help?
Worked thanks
Hi missed this comment… this is an example for a page:
Solution for this topic
I added
.slick-track {
left: 2400px;
}
Seems to work
The site is working perfectly I can access it without a problem. Can you share what you’re getting?
Thank you.
David.
Hi