Hello Hubspot Developers Community,
I am trying to export my blog posts to a CSV file. I had been using the code below to achieve this, but the code is limited to a 200 post output. In the space that says ‘my_blog_id’, I put my actual blog’s ID. Now, I understand that the 200 post limit is due to the use of blog_recent_posts, but is there a way to extend this limitation to 2000? Thank you so much for your help!
{% set export = blog_recent_posts(‘my_blog_id’, 2000) %}
“post_title”,“post_slug”,“post_date”,“post_content”,“post_thumbnail”,“post_author”,“post_category”,<br>
{% for content in export %} “{{ content.name|forceescape }}”,“{{ content.slug|forceescape|replace(‘blog/’, ‘’) }}”,“{{ content.publish_date_localized|forceescape }}”,“{{ content.post_body|replace('”‘,’“”‘)|forceescape|escape_jinjava }}“,”{{ content.featured_image }}“,”{{ content.blog_post_author }}“,”{{ content.topic_list|forceescape|replace(’[‘, ‘’)|replace(’]', ‘’) }}"<br>{% endfor %}