How can I access a blog object on a different page?

how to access blog object in different page?

{% for blog in blog.articles %}
  {{blog.handle}}
{% endfor %}

This is PageFly - Free Landing Page Builder. I would love to provide my recommendations for your store based on 6 years of providing solutions for about 100.000 active Shopify merchants.

Regards your concern that you want to access the Blog object from your custom page. But trouble is that the Blog object is not accessible from page templates.

The workaround for this is to create a special linked-list for your blogs – and then target that linked-list to pull the Blog objects into your code:

Step 1: Create the special “Blogs” linked-list:

  1. From your Shopify admin, go to Online Store > Navigation.
  2. Click the Add menu button.
  3. Enter Blogs as the Title.
  4. Repeat the following for each blog category that you want listed:
  5. Click Add menu item.
  6. Click in the Link box and select Blogs from the pop-up menu.
  7. Select the Blog that you want displayed.1. Click Save menu.

Step 2: Edit your custom page template

  1. Add the following code to your custom page template:

    {% for link in linklists.blogs.links %}

{% assign blog = link.object %}

{% for article in blog.articles %}

{{ article.title }}

{% endfor %}

{% endfor %}

Click Save.

Let me know if this solves your problem or if you need further help!

If you feel my answer is helpful, like it or mark it as a solution. Let me know if you have any questions.

Best regards,

PageFly