Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #89264

    Paul R
    Moderator

    Hi Steve,

    Sorry for the typo

    Here is the code again

    
    $args = array('post_type' => 'post','posts_per_page' => $count,'cat'=>1);
    
    #93895

    STEVE H
    Participant

    Thanks for the corrected code, but it’s still not working quite perfectly. I set the code for category #3, and the posts in the carousel changed from posts with category #1 to posts with category #3, but there is one post appearing in the carousel that is not in category 3. However, this post has a category that is a child of category 3. Could that be why this is happening? If so, it’s not a problem that needs fixing, just thought we should get to the bottom of things.

    Thanks as always for your expert help.

    #93944

    Zeshan
    Member

    Hi Steve,

    Thank you for writing in!

    The above code will disable any child of that category too. To avoid this situation, simply use this code instead:

    $args = array('post_type' => 'post', 'posts_per_page' => $count, 'category__in' => array( 1 ));
    

    Hope this helps. 🙂

    Thank you.

    #94158

    STEVE H
    Participant

    Yes! Now it works perfectly. Thank you for sticking with this. You guys are the best.

    #94244

    Zeshan
    Member

    You’re most welcome Steve! 🙂

    #193276

    Tim M
    Participant

    Hello,

    is there anyway i can change the way my category page looks like http://rsaacademyits.com/rsa-new/category/success/ i would like this page to display smaller posts similar to how my main post page looks.. http://rsaacademyits.com/rsa-new/home/about/latestnews/

    i await your reply, thanks

    #193962

    Christian
    Moderator

    Hey Tim,

    In Appearance > Customize > Blog, please set your Archives to use Masonry layout (see http://prntscr.com/5ydukn).

    Hope that helps. 🙂

    #235138

    Richard S
    Participant

    Good afternoon,

    I realize this is an older feed, but I was unable to make the POST SLIDER show the most recent articles using the code in the first entry of this feed. Is there some way I need to update the code from there, for newer versions of X?

    Thanks for your time,

    Richard

    #235408

    Rad
    Moderator

    Hi Richard,

    Unfortunately, the code given here is too old and not applicable for newer version of X. But you can start a new thread regarding your request while pointing on this thread. And on that new thread, you can provide your admin and ftp login credentials in private reply. There should be small difference, but we need to make it sure first by testing it.

    Thank you.

    #270202

    albery y
    Participant

    Hi,
    I would like to edit what is shown on the hover of the post carousel. I am using the latested version of X and the ethos stack.
    In the _post-carousel.php I have found
    <?php x_ethos_entry_cover( ‘post-carousel’ ); ?>
    which seems to point to yet another file. Would like to know where to find this file and edit it.
    Thanks

    #270220

    albery y
    Participant

    Hi,
    I have found the file at framework/functions/ethos.php
    Would like to know how to include the modified file into the child theme, the simple copy of the file doesn’t work.
    Thanks,

    A

    #270321

    Rue Nel
    Moderator

    Hello There,

    Thanks for updating the thread.

    To modify the post carousel, just copy the file _post-carousel.php and upload it to your child theme’s folder under \wp-content\themes\x-child\framework\views\ethos

    Hope this helps.

    #270854

    albery y
    Participant

    Hi,
    The challenge I am facing is when I copy over and edit the file
    framework/functions/ethos.php
    in the child theme, it doesn’t work. The file in the child theme is ignored. How can I get it to be used instead of the one in the mean theme folder. (have never seen this with a child theme file before)
    Thanks

    #271007

    Zeshan
    Member

    Hi Albery,

    You’ll need to overwrite the functions in your child theme’s functions.php file. For example, if a function starts with following line (see: http://prntscr.com/743l8o):

    if ( ! function_exists( 'function_name' ) ) :
    

    you can simply copy this entire function and paste in your child theme’s functions.php file. Then you can modify that as per your needs.

    Thanks!

    #271391

    albery y
    Participant

    Thanks.
    That did the trick, thanks.