-
AuthorPosts
-
August 21, 2014 at 9:01 am #89264
Hi Steve,
Sorry for the typo
Here is the code again
$args = array('post_type' => 'post','posts_per_page' => $count,'cat'=>1);
August 28, 2014 at 6:50 am #93895Thanks 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.
August 28, 2014 at 8:12 am #93944Hi 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.
August 28, 2014 at 12:59 pm #94158Yes! Now it works perfectly. Thank you for sticking with this. You guys are the best.
August 28, 2014 at 2:36 pm #94244You’re most welcome Steve! 🙂
January 28, 2015 at 4:13 am #193276Hello,
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
January 28, 2015 at 8:39 pm #193962Hey Tim,
In Appearance > Customize > Blog, please set your Archives to use Masonry layout (see http://prntscr.com/5ydukn).
Hope that helps. 🙂
March 25, 2015 at 3:13 pm #235138Good 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
March 25, 2015 at 10:10 pm #235408Hi 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.
May 10, 2015 at 12:36 pm #270202Hi,
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.
ThanksMay 10, 2015 at 1:45 pm #270220Hi,
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
May 10, 2015 at 6:56 pm #270321Hello 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.
May 11, 2015 at 10:39 am #270854Hi,
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)
ThanksMay 11, 2015 at 1:56 pm #271007Hi 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!
May 12, 2015 at 2:01 am #271391Thanks.
That did the trick, thanks. -
AuthorPosts