<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Merging blog lists in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Merging-blog-lists/m-p/215225#M9475</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have different blog templates for English and Arabic. I want to create a template which shows&amp;nbsp;a list of blogs from both of English and Arabic blog pages sorted by date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to make changes in the post listing in the template, as shown on this page:&lt;/P&gt;&lt;P&gt;&lt;A href="https://designers.hubspot.com/docs/tutorials/combining-multiple-sets-of-blog-posts-into-a-single-listing" target="_blank"&gt;https://designers.hubspot.com/docs/tutorials/combining-multiple-sets-of-blog-posts-into-a-single-listing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is my page link:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sabaconsultants.com/all-blogs" target="_blank"&gt;https://www.sabaconsultants.com/all-blogs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The page was created but the blog list doesn't show up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to merge the blog list of the 2 pages below:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sabaconsultants.com/blog" target="_blank"&gt;https://www.sabaconsultants.com/blog&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sabaconsultants.com/blog-ar" target="_blank"&gt;https://www.sabaconsultants.com/blog-ar&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Nov 2018 13:03:29 GMT</pubDate>
    <dc:creator>spsangeeta</dc:creator>
    <dc:date>2018-11-06T13:03:29Z</dc:date>
    <item>
      <title>Merging blog lists</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Merging-blog-lists/m-p/215225#M9475</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have different blog templates for English and Arabic. I want to create a template which shows&amp;nbsp;a list of blogs from both of English and Arabic blog pages sorted by date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to make changes in the post listing in the template, as shown on this page:&lt;/P&gt;&lt;P&gt;&lt;A href="https://designers.hubspot.com/docs/tutorials/combining-multiple-sets-of-blog-posts-into-a-single-listing" target="_blank"&gt;https://designers.hubspot.com/docs/tutorials/combining-multiple-sets-of-blog-posts-into-a-single-listing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is my page link:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sabaconsultants.com/all-blogs" target="_blank"&gt;https://www.sabaconsultants.com/all-blogs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The page was created but the blog list doesn't show up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to merge the blog list of the 2 pages below:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sabaconsultants.com/blog" target="_blank"&gt;https://www.sabaconsultants.com/blog&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sabaconsultants.com/blog-ar" target="_blank"&gt;https://www.sabaconsultants.com/blog-ar&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2018 13:03:29 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Merging-blog-lists/m-p/215225#M9475</guid>
      <dc:creator>spsangeeta</dc:creator>
      <dc:date>2018-11-06T13:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Merging blog lists</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Merging-blog-lists/m-p/215307#M9484</link>
      <description>&lt;P&gt;Is it possible you post the code you are using to combine the two lists?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2018 17:32:00 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Merging-blog-lists/m-p/215307#M9484</guid>
      <dc:creator>ChadP</dc:creator>
      <dc:date>2018-11-06T17:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Merging blog lists</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Merging-blog-lists/m-p/215399#M9495</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{% set blog_one_posts = blog_recent_posts('5269069498', limit=5) %} &amp;lt;!-- sets a variable for a the 5 most recent posts of my default COS blog --&amp;gt;&lt;BR /&gt;{% set blog_two_posts = blog_recent_posts('5213662779', limit=5) %} &amp;lt;!-- sets a variable for a the 5 most recent posts of my blog id 47082700. You can find the blog id in the URL of the blog dashboard for a particular blog--&amp;gt;&lt;BR /&gt;{% set all_posts = (blog_one_posts + blog_two_posts) | sort(true, false, 'publish_date') %} &amp;lt;!-- combines the two variables into a single variable and sorts them by publish date. Please note the sort filter requires all three parameters --&amp;gt;&lt;BR /&gt;{% for post in all_posts %} &amp;lt;!-- loop through posts in custom all posts variable --&amp;gt;&lt;BR /&gt;&amp;lt;div class="post-item"&amp;gt;&lt;BR /&gt;{% if not simple_list_page %}&lt;BR /&gt;&amp;lt;div class="post-header"&amp;gt;&lt;BR /&gt;&amp;lt;h2&amp;gt;&amp;lt;a href="{{post.absolute_url}}"&amp;gt;{{ post.name }}&amp;lt;/a&amp;gt;&amp;lt;/h2&amp;gt;&lt;BR /&gt;&amp;lt;div id="hubspot-author_data" class="hubspot-editable" data-hubspot-form-id="author_data" data-hubspot-name="Blog Author"&amp;gt;&lt;BR /&gt;Posted by&lt;BR /&gt;{%if post.blog_post_author %}&lt;BR /&gt;&amp;lt;a class="author-link" href=" {{ post.parent_blog.absolute_url }}/author/{{ post.blog_post_author.slug }}"&amp;gt;{{ post.blog_post_author.display_name }}&amp;lt;/a&amp;gt; on {{ post.publish_date_localized }}&lt;BR /&gt;{% endif %}&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;{% blog_social_sharing "blog_social_sharing" overrideable=False, label='Blog Social Sharing' %}&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;div class="post-body clearfix"&amp;gt;&lt;BR /&gt;&amp;lt;!--post summary--&amp;gt;&lt;BR /&gt;{% if post.post_list_summary_featured_image %}&lt;BR /&gt;&amp;lt;div class="hs-featured-image-wrapper"&amp;gt;&lt;BR /&gt;&amp;lt;a href="{{post.absolute_url}}" title="" class="hs-featured-image-link"&amp;gt;&lt;BR /&gt;&amp;lt;img src="{{ post.post_list_summary_featured_image }}" class="hs-featured-image"&amp;gt;&lt;BR /&gt;&amp;lt;/a&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;{% endif %}&lt;BR /&gt;{{ post.post_list_content|safe }}&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;{% if content_group.show_summary_in_listing %}&lt;BR /&gt;&amp;lt;a class="more-link" href="{{ post.absolute_url }}"&amp;gt;Read More&amp;lt;/a&amp;gt;&lt;BR /&gt;{% endif %}&lt;BR /&gt;&amp;lt;div class="custom_listing_comments"&amp;gt;&lt;BR /&gt;{% set comments_number = post.comment_list|length %}&lt;BR /&gt;{% set comments_label = "Comment" if comments_number == 1 else "Comments" %}&lt;BR /&gt;{{ comments_number }} {{ comments_label }} &amp;lt;a href="{{post.absolute_url}}#comments-listing"&amp;gt;Click here to read/write comments&amp;lt;/a&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;{% if post.topic_list %}&lt;BR /&gt;&amp;lt;p id="hubspot-topic_data"&amp;gt; Topics:&lt;BR /&gt;{% for topic in post.topic_list %}&lt;BR /&gt;&amp;lt;a class="topic-link" href=" {{ post.parent_blog.absolute_url }}/topic/{{ topic.slug }}&amp;lt;/a&amp;gt;{% if not loop.last %},{% endif %}&lt;BR /&gt;{% endfor %}&lt;BR /&gt;&amp;lt;/p&amp;gt;&lt;BR /&gt;{% endif %}&lt;BR /&gt;{% else %}&lt;BR /&gt;&amp;lt;h2 class="post-listing-simple"&amp;gt;&amp;lt;a href="{{post.absolute_url}}"&amp;gt;{{ post.name }}&amp;lt;/a&amp;gt;&amp;lt;/h2&amp;gt;&lt;BR /&gt;{% endif %}&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;{% endfor %}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Nov 2018 07:00:00 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Merging-blog-lists/m-p/215399#M9495</guid>
      <dc:creator>spsangeeta</dc:creator>
      <dc:date>2018-11-07T07:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: Merging blog lists</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Merging-blog-lists/m-p/215583#M9521</link>
      <description>&lt;P&gt;you can have some idea here &lt;A href="https://community.hubspot.com/t5/Content-Design-Questions/Combine-multiple-blogs-in-Related-Posts/m-p/214859#M9430" target="_blank"&gt;https://community.hubspot.com/t5/Content-Design-Questions/Combine-multiple-blogs-in-Related-Posts/m-p/214859#M9430&lt;/A&gt; and just sort it out by publish date&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;best of luck&lt;BR /&gt;joey&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2018 07:29:37 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Merging-blog-lists/m-p/215583#M9521</guid>
      <dc:creator>valerajoey</dc:creator>
      <dc:date>2018-11-08T07:29:37Z</dc:date>
    </item>
  </channel>
</rss>

