# Latest News Section

{% hint style="info" %}
Live Example: <https://candidate.codenation.com/>
{% endhint %}

<figure><img src="/files/Zda4JIXXtgSg5XQjaoxh" alt="Candidate Themes Latest News Section"><figcaption><p>Candidate Themes Latest News Section</p></figcaption></figure>

## Adding a Latest News Section

1. By default if your site has a blog with blog posts, the homepage will automatically show a latest news panel.
   * To hide this panel from the homepage, add the tag `Admin Hide Latest News Section` to the homepage.
2. To add this section to a page other than the homepage navigate to the pages backend in NationBuilder and add the tag `Admin Latest News Section`.

## How to Edit the Preview for Each Blog Post

* The ***title*** of the blog article is directly drawn from the headline of the blog post in NationBuilder.&#x20;
* The ***content*** of the blog article is directly drawn from the first 44 words of the blog post.&#x20;
* By default, the ***thumbnail*** image is drawn from the social media share icon of the blog post. If no image is added, a default picture with your logo will be used. You can update the blog article's thumbnail by navigating to **Blog Post > Settings > Social Media**.&#x20;
* The Latest News section will always display the three most recently published blog posts on the site.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.codenation.com/admin-tag-customisations/admin-latest-news-section.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
