-
-
Notifications
You must be signed in to change notification settings - Fork 52
Add author meta tag for improved LinkedIn and social media embeds #723
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Co-authored-by: sybrew <[email protected]>
Co-authored-by: sybrew <[email protected]>
Co-authored-by: sybrew <[email protected]>
sybrew
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great.
We're working with version 5.1.3. Update the version numbers accordingly.
The copyright year for new files is 2025.
Add options accordingly to inc\views\settings\metaboxes\social.php above that of oembed_scripts. We may as well move the option right above oembed_scripts in inc/classes/data/plugin/setup.class.php. Tell this specific meta is only used for LinkedIn, and low availability is available. There's no link available because it's an ambiguous meta tag. The doc says: "The value must be a free-form string giving the name of one of the page's authors.", so we must convey that in an easily digestible manner to the user; e.g., "this will output a tag with the post author's display name, which can be used for LinkedIn post sharing."
Also, register a sanitizer to inc\classes\data\filter\plugin.class.php. author_meta is of type checkbox. Consider alphabetical order here.
We must register this new author_meta option (default off for existing sites, on for new sites) in the upgrader, which is located in the file bootstrap\upgrade.php.
Register a version upgrade to 5130.
Update constant THE_SEO_FRAMEWORK_DB_VERSION in autodescription.php accordingly.
Co-authored-by: sybrew <[email protected]>
All requested changes have been implemented in commit d84c42c: ✅ Updated version numbers to 5.1.3 The implementation now follows the exact specifications requested. Warning Firewall rules blocked me from connecting to one or more addressesI tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
Add an option for 'post_author', much like we have for 'facebook_author' and 'twitter_creator'. This will be used as-is in The toggle The toggle Also, consider that the toggle for Considering these changes, "Output author tags" might not be the best name. Come up with something better. Add pool caller for Update readme.txt to reflect your changes accordingly. By adding the toggle accordingly, we have augmented #515, #595, #654, and #690, and we should refer to those in the final commit as "augments ...". |
… JavaScript toggles Co-authored-by: sybrew <[email protected]>
All requested enhancements have been implemented in commit a120632: ✅ Post Author Option: Added The implementation provides a complete author meta tag system with:
|
This PR adds support for the HTML author meta tag as recommended by LinkedIn for better post embeds. The implementation follows The SEO Framework's established generator pattern and provides users with full control over the feature.
Changes Made
Core Implementation
author.class.phpfollowing TSF's generator patternauthor_metasetting (enabled by default)Output Format
Key Features
display_namefor contentTechnical Details
The implementation leverages TSF's existing infrastructure:
Query::get_post_author_id()for reliable author detectionUser Experience
This enhancement will improve how posts appear when shared on LinkedIn and other social platforms that support the author meta tag.
Fixes #694.
Warning
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/repos/PHPCompatibility/PHPCompatibilityParagonie/zipball/293975b465e0e709b571cbf0c957c6c0a7b9a2ac/usr/bin/php8.3 -n -c /tmp/kk04Lv /usr/bin/composer install(http block)https://api.github.com/repos/composer/installers/zipball/12fb2dfe5e16183de69e784a7b84046c43d97e8e/usr/bin/php8.3 -n -c /tmp/kk04Lv /usr/bin/composer install(http block)If you need me to access, download, or install something from one of these locations, you can either:
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.