dehed profile

Home Forums dehed

Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
  • dehed
    Participant

    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?

    dehed
    Participant

    Worked thanks

    dehed
    Participant

    Solution for this topic

    I added

     

    .slick-track {
    left: 2400px;
    }

     

    Seems to work

    in reply to: A few questions

    dehed
    Participant

    The site is working perfectly I can access it without a problem. Can you share what you’re getting?

    in reply to: A few questions

    dehed
    Participant
    1. Solved
    2. Thank you
    3. Solved
    4. Yes, the RTL is what is causing the problem, when I change the site’s language to English it works as expected. Now that we understand where the problem is – How do I make it work when the site is in RTL?
    5. I’ve tried multiple browsers and none of them show the comma. Also – how on earth in your screenshot do you have a comma on 200,000 but no comma on 2500? How did that happen???
    6. I understand, and I can take care of coding, but I just want to understand where that animation is located within the code – you don’t have to walk me through changing it, I will take care of that. Just point me in the direction of the relevant files where the relevant code is.

    Thank you.

    David.

    in reply to: A few questions

    dehed
    Participant

    Hi

     

    1. I managed to get it done thanks.
    2. Attached screenshot
    3. Thanks that worked
    4. Updated the theme but that didn’t change. I think the fact that the website is RTL might be throwing it off balance?
    5. WHAT??? I don’t understand… How are you seeing this??? I see it as 200000, checked from different computers and browsers, attaching screenshot…
    6. Yes, the one that you have a choice between dots and squares etc. I want to have my own custom loading animation.

     

    Attachments:
    You must be logged in to view attached files.
    in reply to: A few questions
Viewing 7 posts - 1 through 7 (of 7 total)