Share Your Work

manish230793
メンバー

how to get posts(articles or blog) from wordpress in hubspot template

In worpdress create two custom post types name are series and financial .

I have cerate template in hubspot in that temaplte how to get posts from custom post types from worpdpress

0 いいね!
3件の返信
DanielSanchez
キーアドバイザー | Platinum Partner
キーアドバイザー | Platinum Partner

how to get posts(articles or blog) from wordpress in hubspot template

Hi @manish230793 ,

 

U can use topics in HubSpot to separate your posts in categories, and use this code to create one topic menu:

{% set my_topics = blog_topics('default', 250) %}
<ul>
{% for item in my_topics %}
<li><a href="{{ blog_tag_url(group.id, item.slug) }}">{{ item }}</a></li>
{% endfor %}
</ul>

Look the result without CSS:

menu.PNG

 

Now, u can create the style to configure the layout you need.  Look how the code above stayed, after i configure the CSS in one template that i created:

my-blog.PNG

 

Did this post help solve your problem? If so, please mark it as a solution.

Best regards!

0 いいね!
manish230793
メンバー

how to get posts(articles or blog) from wordpress in hubspot template

blogs are fetched in WordPress not in Hubspot. All blogs get into Wordpress. I have set custom design Rss feed that template send into mail.

0 いいね!
Anonymous
適用対象外

how to get posts(articles or blog) from wordpress in hubspot template

WordPress can provide a feed based on the custom post type, best bet would be to setup the feeds based on the CPT from WP rather than ask HubSpot to filter a single feed from WP that has all the post types in it.

0 いいね!