<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>

		<title>Display Ethos Post Slider on a custom Page &#8211; Themeco Community</title>
		<atom:link href="https://theme.co/archive/forums/topic/display-ethos-post-slider-on-a-custom-page/feed/" rel="self" type="application/rss+xml" />
		<link>https://theme.co/archive/forums/topic/display-ethos-post-slider-on-a-custom-page/feed/</link>
		<description></description>
		<lastBuildDate>Tue, 14 Oct 2025 02:34:09 +0000</lastBuildDate>
		<generator>https://bbpress.org/?v=2.6.14</generator>
		<language>en-US</language>

		
														
					
				<item>
					<guid>https://theme.co/archive/forums/topic/display-ethos-post-slider-on-a-custom-page/#post-179758</guid>
					<title><![CDATA[Display Ethos Post Slider on a custom Page]]></title>
					<link>https://theme.co/archive/forums/topic/display-ethos-post-slider-on-a-custom-page/#post-179758</link>
					<pubDate>Fri, 09 Jan 2015 12:52:08 +0000</pubDate>
					<dc:creator>intuitivapt</dc:creator>

					<description>
						<![CDATA[
						<p>Hi,</p>
<p>First of all, I should thank you the amazing WordPress theme you&#8217;ve developed here!</p>
<p>We&#8217;re developing an ethos-stack based website (<a href="http://dev.psamlisboa.pt" rel="nofollow">http://dev.psamlisboa.pt</a>), that needs a custom homepage that features the post slider.</p>
<p>Therefore, I&#8217;m in need of getting the post slider showing in this custom page.</p>
<p>Is that possible? I need to make it possibly by any means necessary&#8230;</p>
<p>Thanks in advanced 🙂</p>
<p>Kind Regards,</p>
<p>Joel Galvão<br />
<a href="http://intuitiva.pt/" rel="nofollow">intuitiva.pt</a></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/display-ethos-post-slider-on-a-custom-page/#post-179759</guid>
					<title><![CDATA[Reply To: Display Ethos Post Slider on a custom Page]]></title>
					<link>https://theme.co/archive/forums/topic/display-ethos-post-slider-on-a-custom-page/#post-179759</link>
					<pubDate>Fri, 09 Jan 2015 12:54:30 +0000</pubDate>
					<dc:creator>intuitivapt</dc:creator>

					<description>
						<![CDATA[
						<p>X Theme Version: 3.1.1</p>
<p>Shortcode version: 2.6.1</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/display-ethos-post-slider-on-a-custom-page/#post-179944</guid>
					<title><![CDATA[Reply To: Display Ethos Post Slider on a custom Page]]></title>
					<link>https://theme.co/archive/forums/topic/display-ethos-post-slider-on-a-custom-page/#post-179944</link>
					<pubDate>Fri, 09 Jan 2015 19:06:40 +0000</pubDate>
					<dc:creator>Zeshan</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there,</p>
<p>Thanks for writing in!</p>
<p>This isn&#8217;t possible out of the box, but it could be achieved with some custom development. While that is outside the scope of support, I could point you in the right direction with the understanding that it would ultimately be your responsibility to take it from here.</p>
<p>Because this requires a template change, I&#8217;d advise that you setup a <a href="http://theme.co/x/member/kb/how-to-setup-child-themes/" title="Child Themes" target="_blank" rel="nofollow">child theme</a>. This allows you to make code changes that won&#8217;t be overwritten when an <strong>X</strong> update is released. After your child theme is setup, please review how we recommend making template changes in <a href="http://theme.co/x/member/kb/customization-best-practices/" rel="nofollow">Customization Best Practices</a>.</p>
<p>After that, to show the slider on your static homepage, copy the file <strong>wp-content/themes/x/framework/views/ethos/_post-slider.php</strong> in your child theme&#8217;s folder <strong>/framework/views/ethos/</strong>, open the file in a text editor and replace entire code with following:</p>
<pre><code>&lt;?php

// =============================================================================
// VIEWS/ETHOS/_POST-SLIDER.PHP
// -----------------------------------------------------------------------------
// Outputs the post slider that appears at the top of the blog.
// =============================================================================

$is_blog    = is_home();
$is_archive = is_category() || is_tag();

if ( $is_blog || $is_archive || is_front_page() ) :

  if ( $is_blog ) {
    $info = array( &#039;blog&#039;, NULL, NULL, &#039;_x_ethos_post_slider_blog_display&#039; );
  } elseif ( $is_archive ) {
    $type = ( is_category() ) ? &#039;cat&#039; : &#039;tag_id&#039;;
    $info = array( &#039;archive&#039;, $type, get_queried_object_id(), &#039;_x_ethos_post_slider_archives_display&#039; );
  }

  $slider_enabled = x_get_option( &#039;x_ethos_post_slider_&#039; . $info[0] . &#039;_enable&#039;, &#039;&#039; ) == &#039;1&#039;;
  $count          = x_get_option( &#039;x_ethos_post_slider_&#039; . $info[0] . &#039;_count&#039; );
  $display        = x_get_option( &#039;x_ethos_post_slider_&#039; . $info[0] . &#039;_display&#039; );

  $blog_slider_is_enabled    = $slider_enabled &amp;&amp; $is_blog;
  $archive_slider_is_enabled = $slider_enabled &amp;&amp; $is_archive;
  $is_enabled                = $blog_slider_is_enabled || $archive_slider_is_enabled || is_front_page();

  switch ( $display ) {
    case &#039;most-commented&#039; :
      $args = array(
        &#039;post_type&#039;      =&gt; &#039;post&#039;,
        &#039;posts_per_page&#039; =&gt; $count,
        &#039;orderby&#039;        =&gt; &#039;comment_count&#039;,
        &#039;order&#039;          =&gt; &#039;DESC&#039;,
        $info[1]         =&gt; $info[2]
      );
      break;
    case &#039;random&#039; :
      $args = array(
        &#039;post_type&#039;      =&gt; &#039;post&#039;,
        &#039;posts_per_page&#039; =&gt; $count,
        &#039;orderby&#039;        =&gt; &#039;rand&#039;,
        $info[1]         =&gt; $info[2]
      );
      break;
    case &#039;featured&#039; :
      $args = array(
        &#039;post_type&#039;      =&gt; &#039;post&#039;,
        &#039;posts_per_page&#039; =&gt; $count,
        &#039;orderby&#039;        =&gt; &#039;date&#039;,
        &#039;meta_key&#039;       =&gt; $info[3],
        &#039;meta_value&#039;     =&gt; &#039;on&#039;
      );
      break;
  }

  if (is_front_page()) {
    $args = array(
      &#039;post_type&#039;      =&gt; &#039;post&#039;,
      &#039;posts_per_page&#039; =&gt; $count,
      &#039;orderby&#039;        =&gt; &#039;rand&#039;,
      $info[1]         =&gt; $info[2]
    );
  }

  ?&gt;

  &lt;?php if ( $is_enabled ) : ?&gt;

    &lt;div class=&quot;x-flexslider x-post-slider&quot;&gt;
      &lt;ul class=&quot;x-slides&quot;&gt;

        &lt;?php $wp_query = new WP_Query( $args ); ?&gt;

        &lt;?php if ( $wp_query-&gt;have_posts() ) : ?&gt;
          &lt;?php while ( $wp_query-&gt;have_posts() ) : $wp_query-&gt;the_post(); ?&gt;

            &lt;li class=&quot;x-slide&quot;&gt;
              &lt;article id=&quot;post-&lt;?php the_ID(); ?&gt;&quot; &lt;?php post_class( &#039;x-post-slider-entry&#039; ); ?&gt; style=&quot;&lt;?php echo x_ethos_entry_cover_background_image_style(); ?&gt;&quot;&gt;
                &lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot;&gt;
                  &lt;div class=&quot;cover&quot;&gt;
                    &lt;div class=&quot;middle&quot;&gt;
                      &lt;span class=&quot;featured-meta&quot;&gt;&lt;?php echo x_ethos_post_categories(); ?&gt; / &lt;?php echo get_the_date( &#039;F j, Y&#039; ); ?&gt;&lt;/span&gt;
                      &lt;h2 class=&quot;h-featured&quot;&gt;&lt;span&gt;&lt;?php x_the_alternate_title(); ?&gt;&lt;/span&gt;&lt;/h2&gt;
                      &lt;span class=&quot;featured-view&quot;&gt;&lt;?php _e( &#039;View Post&#039;, &#039;__x__&#039; ); ?&gt;&lt;/span&gt;
                    &lt;/div&gt;
                  &lt;/div&gt;
                &lt;/a&gt;
              &lt;/article&gt;
            &lt;/li&gt;

          &lt;?php endwhile; ?&gt;
        &lt;?php endif; ?&gt;

        &lt;?php wp_reset_query(); ?&gt;

      &lt;/ul&gt;
    &lt;/div&gt;

    &lt;script&gt;
      jQuery(window).load(function() {
        jQuery(&#039;.x-post-slider&#039;).flexslider({
          controlNav   : false,
          selector     : &#039;.x-slides &gt; li&#039;,
          prevText     : &#039;&lt;i class=&quot;x-icon-chevron-left&quot;&gt;&lt;/i&gt;&#039;,
          nextText     : &#039;&lt;i class=&quot;x-icon-chevron-right&quot;&gt;&lt;/i&gt;&#039;,
          animation    : &#039;fade&#039;,
          smoothHeight : true,
          slideshow    : true
        });
      });
    &lt;/script&gt;

  &lt;?php endif; ?&gt;

&lt;?php endif; ?&gt;
</code></pre>
<p>After that very similar step as above, copy the file <strong>wp-content/themes/x/framework/views/ethos/wp-header.php</strong> in your child theme&#8217;s folder <strong>/framework/views/ethos/</strong>, open the file in text editor and add following code at the end of the file:</p>
<pre><code>&lt;?php if (is_front_page()): ?&gt;
  &lt;div class=&quot;x-container max width&quot;&gt;&lt;?php x_get_view( &#039;ethos&#039;, &#039;_post&#039;, &#039;slider&#039; ); ?&gt;&lt;/div&gt;
&lt;?php endif; ?&gt;
</code></pre>
<p>Hope this helps. 🙂</p>
<p>Thank you.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/display-ethos-post-slider-on-a-custom-page/#post-181156</guid>
					<title><![CDATA[Reply To: Display Ethos Post Slider on a custom Page]]></title>
					<link>https://theme.co/archive/forums/topic/display-ethos-post-slider-on-a-custom-page/#post-181156</link>
					<pubDate>Mon, 12 Jan 2015 10:50:51 +0000</pubDate>
					<dc:creator>intuitivapt</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there,</p>
<p>It&#8217;s working!</p>
<p>Many thanks on this 🙂</p>
<p>Best Regards,</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/display-ethos-post-slider-on-a-custom-page/#post-181390</guid>
					<title><![CDATA[Reply To: Display Ethos Post Slider on a custom Page]]></title>
					<link>https://theme.co/archive/forums/topic/display-ethos-post-slider-on-a-custom-page/#post-181390</link>
					<pubDate>Mon, 12 Jan 2015 18:22:26 +0000</pubDate>
					<dc:creator>Zeshan</dc:creator>

					<description>
						<![CDATA[
						<p>You&#8217;re most welcome! 🙂</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/display-ethos-post-slider-on-a-custom-page/#post-712745</guid>
					<title><![CDATA[Reply To: Display Ethos Post Slider on a custom Page]]></title>
					<link>https://theme.co/archive/forums/topic/display-ethos-post-slider-on-a-custom-page/#post-712745</link>
					<pubDate>Fri, 18 Dec 2015 18:56:53 +0000</pubDate>
					<dc:creator>zenzino</dc:creator>

					<description>
						<![CDATA[
						<p>Is there any way to insert the featured post slider at a specific point in the page? I would like some content above the slider and some below.</p>
<p>Thanks.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/display-ethos-post-slider-on-a-custom-page/#post-712997</guid>
					<title><![CDATA[Reply To: Display Ethos Post Slider on a custom Page]]></title>
					<link>https://theme.co/archive/forums/topic/display-ethos-post-slider-on-a-custom-page/#post-712997</link>
					<pubDate>Fri, 18 Dec 2015 22:06:45 +0000</pubDate>
					<dc:creator>Jade</dc:creator>

					<description>
						<![CDATA[
						<p>Hi <a href="https://theme.co/archive/users/zenzino/" class="bbp-user-mention bbp-user-id-16225"> @zenzino</a>,</p>
<p>Thanks for writing in.</p>
<p>Relating to the previous suggestions in this post, you can check on <strong>wp-index.php</strong> file in <strong>wp-content/themes/x/framework/views/ethos</strong> and make a copy of it and place it in the same directory in your child theme.</p>
<p>And then in the code, if you want to place contents before the post slider then simple add them before the line:</p>
<p><code>&lt;?php x_get_view( &#039;ethos&#039;, &#039;_post&#039;, &#039;slider&#039; ); ?&gt;</code></p>
<p>Hope this helps.</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

