# Videos Module

### 1. Adding a New Video

Videos are managed through a **Custom Post Type (CPT)**.

1. Go to **Dashboard → Videos → Add New**.
2. Add the **Title** and **Description** of your video.
3. Assign **Categories** and **Tags** to organize videos.
4. Enter the additional **Video Fields**:
   * **Video URL** – Add a YouTube, Vimeo, or self-hosted link.
   * **Duration** – Enter the length of the video (e.g., `5:30`).
5. Click **Publish** to save your video.

<figure><img src="/files/UCTg17BazdN93h431xZy" alt=""><figcaption></figcaption></figure>

***

### 2. Customizer Settings – Video Page

Go to **Customizer → Videos Module → Videos Page** to configure the video archive page.

* **Featured Section**\
  Toggle **Enable/Disable** for the Featured Video section.
* **Autoplay**\
  Enable or disable autoplay for the Featured Video.
* **Video Blocks**\
  Add multiple blocks to organize videos (e.g., Courses, Talk Shows, Technology).
  * Each block can be connected with categories/tags.
  * Limit: Up to **10 rows**.

<figure><img src="/files/fl6TpNmxea1GD4vOnnhx" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/ewc1IwctMQk9kbcRRUYf" alt=""><figcaption></figcaption></figure>

***

### 3. Customizer Settings – Single Video

Go to **Customizer → Videos Module → Single Video** to configure individual video pages.

* **Featured Section**\
  Enable/Disable the **Related Videos** section.
* **Section Heading**\
  Customize the heading text (e.g., `اس کیٹیگری سے مزید ویڈیوز`).
* **Videos Limit**\
  Select how many related videos to display (3, 6, or 9).

<figure><img src="/files/bI8PWnymst2dVapC87ss" alt=""><figcaption></figcaption></figure>

***

### 4. Summary

The **Video Module** is a powerful feature of UrduPress that helps you:

* Add and manage videos with categories/tags.
* Customize the **Video Archive Page** with featured blocks.
* Show **related videos** on the Single Video Page.

This ensures a complete and engaging video experience for your audience.


---

# 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.stylothemes.com/urdupress/basic-setup/videos-module.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.
