{"id":1002942,"date":"2015-09-08T08:53:39","date_gmt":"2015-09-08T15:53:39","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-not-appearing-in-main-blog-loop-please-help\/"},"modified":"2015-09-21T04:40:46","modified_gmt":"2015-09-21T11:40:46","slug":"events-not-appearing-in-main-blog-loop-please-help","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-not-appearing-in-main-blog-loop-please-help\/","title":{"rendered":"Events not appearing in main blog loop &#8211; please help!"},"content":{"rendered":"<p>This is the code for the div, there show my normal &#8220;posts&#8221; at the front site.<br \/>\nbut what schuld i change, if i also want the events to show up? please help me! ( i have checked the box (Include events in main blog loop) but nothing happpen.<\/p>\n<p>&lt;?php<\/p>\n<p>$cat = &#8221;;<\/p>\n<p>if ( ot_get_option( &#8216;home_news_category&#8217; ) ) :<\/p>\n<p>$cat = ot_get_option( &#8216;home_news_category&#8217; );<\/p>\n<p>endif;<\/p>\n<p>$the_query = new WP_Query(array(<br \/>\n&#8216;post_type&#8217; =&gt; &#8216;post&#8217;,<br \/>\n&#8216;posts_per_page&#8217; =&gt; 4,<br \/>\n&#8216;offset&#8217; =&gt; 0,<br \/>\n&#8216;cat&#8217; =&gt; $cat<br \/>\n));<\/p>\n<p>if ( $the_query-&gt;have_posts() ) : ?&gt;<\/p>\n<p>&lt;!&#8211;&lt;div class=&#8221;thumbnails&#8221;&gt;&#8211;&gt;<\/p>\n<p>&lt;?php while ( $the_query-&gt;have_posts() ) : $the_query-&gt;the_post(); ?&gt;<br \/>\n&lt;div &lt;?php post_class( &#8216;span3&#8217; ); ?&gt;&gt;<br \/>\n&lt;?php if ( has_post_thumbnail() ) { \/\/ the current post has a thumbnail ?&gt;<br \/>\n&lt;div class=&#8221;img&#8221;&gt;<br \/>\n&#8220;&gt;&lt;?php the_post_thumbnail( &#8216;portfolio&#8217;, array( &#8216;class&#8217; =&gt; &#8221; ) );?&gt;<br \/>\n&lt;span class=&#8221;img-hover&#8221;&gt;&lt;i class=&#8221;icon-circle-arrow-right&#8221;&gt;&lt;\/i&gt;&lt;\/span&gt;<br \/>\n&lt;\/div&gt;<br \/>\n&lt;?php } ?&gt;<br \/>\n&lt;div class=&#8221;caption&#8221;&gt;<br \/>\n&lt;h4&gt;&lt;?php if (is_sticky()) { echo &#8216;&lt;i class=&#8221;icon-pushpin sticky&#8221; title=&#8221;Sticky&#8221;&gt;&lt;\/i&gt; &#8216;;}?&gt;&#8221;&gt;&lt;?php the_title(); ?&gt;&lt;\/h4&gt;<br \/>\n&lt;?php echo spritz_posted_on(); ?&gt;<br \/>\n&lt;\/div&gt;<br \/>\n&lt;\/div&gt;<br \/>\n&lt;?php endwhile;<br \/>\nwp_reset_postdata(); ?&gt;<br \/>\n&lt;!&#8211;&lt;\/div&gt;&#8211;&gt;<\/p>\n<p>&lt;?php endif; ?&gt;<br \/>\n&lt;?php wp_cache_flush(); ?&gt;<\/p>\n","protected":false},"template":"","class_list":["post-1002942","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Events not appearing in main blog loop - please help! -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-not-appearing-in-main-blog-loop-please-help\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Events not appearing in main blog loop - please help! -\" \/>\n<meta property=\"og:description\" content=\"This is the code for the div, there show my normal &#8220;posts&#8221; at the front site. but what schuld i change, if i also want the events to show up? please help me! ( i have checked the box (Include events in main blog loop) but nothing happpen. &lt;?php $cat = &#8221;; if ( ot_get_option( [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-not-appearing-in-main-blog-loop-please-help\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-09-21T11:40:46+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-not-appearing-in-main-blog-loop-please-help\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-not-appearing-in-main-blog-loop-please-help\/\",\"name\":\"Events not appearing in main blog loop - please help! -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-09-08T15:53:39+00:00\",\"dateModified\":\"2015-09-21T11:40:46+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-not-appearing-in-main-blog-loop-please-help\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-not-appearing-in-main-blog-loop-please-help\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-not-appearing-in-main-blog-loop-please-help\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Welcome!\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/_welcome\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Pre-Sales Questions\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/_welcome\/pre-sales-questions\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Events not appearing in main blog loop &#8211; please help!\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Events not appearing in main blog loop - please help! -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-not-appearing-in-main-blog-loop-please-help\/","og_locale":"en_US","og_type":"article","og_title":"Events not appearing in main blog loop - please help! -","og_description":"This is the code for the div, there show my normal &#8220;posts&#8221; at the front site. but what schuld i change, if i also want the events to show up? please help me! ( i have checked the box (Include events in main blog loop) but nothing happpen. &lt;?php $cat = &#8221;; if ( ot_get_option( [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-not-appearing-in-main-blog-loop-please-help\/","article_modified_time":"2015-09-21T11:40:46+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-not-appearing-in-main-blog-loop-please-help\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-not-appearing-in-main-blog-loop-please-help\/","name":"Events not appearing in main blog loop - please help! -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-09-08T15:53:39+00:00","dateModified":"2015-09-21T11:40:46+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-not-appearing-in-main-blog-loop-please-help\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-not-appearing-in-main-blog-loop-please-help\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-not-appearing-in-main-blog-loop-please-help\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Welcome!","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/_welcome\/"},{"@type":"ListItem","position":4,"name":"Pre-Sales Questions","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/_welcome\/pre-sales-questions\/"},{"@type":"ListItem","position":5,"name":"Events not appearing in main blog loop &#8211; please help!"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1002942","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":2,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1002942\/revisions"}],"predecessor-version":[{"id":1003096,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1002942\/revisions\/1003096"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1002942"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}