=== WP MyLinks === Contributors: walterpinem Donate link: https://www.paypal.me/WalterPinem Tags: linktree, link in bio, landing page, social profile, schema Requires at least: 6.0 Tested up to: 7.0 Stable tag: 1.0.8 Requires PHP: 7.4 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Easily build your own micro landing page showing all the links you want to share to engage your audience. Use your own brand, link it anywhere. == Description == ### Build a fully customizable micro landing page for your business and personal brand. WP MyLinks can help you create a micro landing page that contains all the links you want to share to your audience with the tool you're currently using and the domain name that reflects your own brand. >One Single Link for Everything! Your most favorite social media usually limits you from showing multiple links on your profile. And you're forced to use third party services. #### Worry no more! Now, you can build your own landing page to market your content, brand, products and anything under a single URL with the tool and resource you currently have. #### Don't lose your precious traffics! Put the generated link on your external channels such as social media profiles and drive 100% traffics to your micro landing page. ### The Awesome Features You'll Love * **[New in 1.0.8]**: **Schema.org JSON-LD output**. Pick `Person` or `Organization` schema globally or per page so search engines can identify you. Defers to Yoast SEO automatically when Yoast is handling schema. * **[New in 1.0.8]**: **Open Graph & Twitter Card meta tags**. Share previews on Facebook, X (Twitter), LinkedIn, and Discord now look correct. Configure a default 1200×630 share image globally, or override it per page. * **[New in 1.0.8]**: **Additional Social Platforms metabox**. Add Threads, Bluesky, GitHub, Mastodon, WhatsApp, Telegram, Signal, or any other platform via a flexible repeater — alongside the existing 8 hardcoded platforms. * **[New in 1.0.8]**: **WCAG 2.2 accessibility**. Skip-to-content link, ARIA labels on every social icon and link button, "opens in new tab" hints for screen readers, and graceful avatar alt fallbacks. * **[Feature]**: **Enhanced Media Embedding (oEmbed)**. In addition to embedding YouTube videos, you can seamlessly embed media from any site supported by WordPress. * **[Feature]**: **Organized Link Collections**. Easily save and access important links in a dedicated collections page, eliminating the need to repeatedly enter the same links manually. * **[Feature]**: **Searchable Link Lists**. The Link input field includes a search function, allowing you to find previously defined links from your Links Collection, existing posts, or pages by default. * **[Feature]**: **YouTube video embed**. Easily embed any YouTube video on your MyLinks page. [**Demo here**.](https://walterpinem.com/i/ "WP MyLinks Demo") * **[Feature]**: **Card layout**. Transform any link into a card layout with the image as background. [**Demo here**.](https://walterpinem.com/i/ "WP MyLinks Demo") * **One Link for Everything**: Set a MyLink page and show all the important links. Get the MyLink page URL and place it anywhere. * **Unlimited Landing Pages**: Easily target your audience by building unlimited custom landing pages for every channel wherever you want to engage them. * **Unlimited Links**: Fill your landing page(s) with links to market your contents, products, or anything you want to build your own brands. * **Add Thumbnails**: Add a thumbnail to each link that best represents it. * **And more awesome features to come!** > For more info, please refer to [WP MyLinks Introduction](https://walterpinem.me/projects/introducing-wp-mylinks/ "WP MyLinks"). > For Indonesian users, please refer to [WP MyLinks](https://www.seniberpikir.com/wp-mylinks/ "WP MyLinks") instead. ### **Watch the Complete Overview and Tutorial** It's really easy to get started. Here's the complete overview and tutorial: https://www.youtube.com/embed/WK03GS5rM0Q ### Theme Demos * [Default](https://walterpinem.me/projects/mylinks/default/ "Default Theme") * [Merbabu](https://walterpinem.me/projects/mylinks/merbabu/ "Merbabu Theme") * [Cikuray](https://walterpinem.me/projects/mylinks/cikuray/ "Cikuray Theme") * [Ciremai](https://walterpinem.me/projects/mylinks/ciremai/ "Ciremai Theme") * [Slamet](https://walterpinem.me/projects/mylinks/slamet/ "Slamet Theme") * [Papandayan](https://walterpinem.me/projects/mylinks/papandayan/ "Papandayan Theme") * [Sindoro](https://walterpinem.me/projects/mylinks/sindoro/ "Sindoro Theme") * [Krakatau](https://walterpinem.me/projects/mylinks/krakatau/ "Krakatau Theme") * [Bromo](https://walterpinem.me/projects/mylinks/bromo/ "Bromo Theme") * [Prau](https://walterpinem.me/projects/mylinks/prau/ "Prau Theme") * [Polos](https://walterpinem.me/projects/mylinks/polos/ "Polos Theme") * [Datar](https://walterpinem.me/projects/mylinks/datar/ "Datar Theme") * [Pastel](https://walterpinem.me/projects/mylinks/pastel/ "Pastel Theme") * [Kopi Hitam](https://walterpinem.me/projects/mylinks/kopi-hitam/ "Kopi Hitam Theme") * [Kopi Susu](https://walterpinem.me/projects/mylinks/kopi-susu/ "Kopi Susu Theme") * [Klepon Viral](https://walterpinem.me/projects/mylinks/klepon/ "Klepon Viral Theme") == Further Questions and Feature Requests? == Premium-quality support without having to spend a dime. Just send your inquiry or feature request on [Walter Pinem Projects](https://walterpinem.me/projects/contact/ "Walter Pinem Projects") and I'll gladly help you out. == Installation == 4 simple steps to get started: 1. Install and activate this plugin via dashboard or upload `wp-mylinks` folder into the `/wp-content/plugins/` directory. 2. Begin configurating this plugin through `MyLinks` admin menu. 3. Add links using `Add New` sub-menu. 4. Complete the configuration and you're all set! == Frequently Asked Questions == = Is it free to use? = Definitely free to use for unlimited sites! :) = How to install and use WP MyLinks? = 4 simple steps to start: 1. Install and activate this plugin via dashboard or upload `wp-mylinks` folder into the `/wp-content/plugins/` directory. 2. Begin configurating this plugin through `MyLinks` admin menu. 3. Add links using `Add New` sub-menu. 4. Complete the configuration and you're all set! = How many micro landing pages can I create? = Unlimited :) = How many links can I put in the page? = Unlimited :) = What if I get 404 not found? = As of version 1.0.8, the plugin automatically flushes rewrite rules on activation and after every update, so 404 errors after upgrading should be a thing of the past. If you do still see a 404: 1. Go to Settings => Permalinks page. 2. Click the Save Changes button without having to change anything. 3. Recheck your MyLink page. The issue will most likely disappear. If the problem persists, please make sure you are using pretty permalinks (Post name) under Settings => Permalinks. Be careful when changing your permalink structure: it affects every URL on your site and can hurt SEO. = I have a Page or Post with the same slug as a MyLink. Which one wins? = The Page or Post wins. Starting in 1.0.8, the plugin only routes a slug-only URL (e.g. /my-page/) to a MyLink when no published page or post already owns that slug. This prevents the plugin from accidentally taking over URLs that belong to the rest of your site. Rename the MyLink slug to resolve the conflict. = Can I change the /mylink/ slug used internally? = Yes. Use the `wp_mylinks_cpt_rewrite_slug` filter to override the slug. Public URLs are still served at // regardless. Example: `add_filter( 'wp_mylinks_cpt_rewrite_slug', function() { return 'bio'; } );` = Does WP MyLinks work with Yoast SEO? = Yes. Yoast remains the source of truth on any page where it has set its own meta title, description, Open Graph image, or schema. WP MyLinks detects Yoast at runtime and steps aside automatically — no double tags. If Yoast is installed but you've disabled its Open Graph or schema features, WP MyLinks will fill the gap. = Will the new Schema.org and Open Graph features change anything if I don't enable them? = No. Both features are off by default. Existing 1.0.7 installs upgrade silently and continue rendering exactly as before. Enable them on Settings → MyLinks → Global only when you're ready. = How do I add Threads, Bluesky, GitHub, or other social platforms? = The new "Additional Social Platforms" metabox on the MyLink editor (right under the existing Social Media metabox) lets you add any platform with a name, URL, and optional icon. Each row appears in the same icon row as the hardcoded 8 platforms (Facebook, Twitter, LinkedIn, Instagram, YouTube, Pinterest, TikTok, Discord). The hardcoded platforms are preserved exactly — no migration risk. = Where can I ask another question or feature request? = Please do not hesitate to send your inquiry through my [contact form](https://walterpinem.me/projects/contact/). Just ask! == Screenshots == 1. Add New MyLink post editor to start creating MyLink landing page 2. Global Configurations setting panel 3. Custom Scripts and Styles setting panel 4. WP MyLinks on mobile == Changelog == = 1.0.8 - May 23, 2026 = **Headline features** * [New] **Schema.org JSON-LD output** for every MyLinks page. Choose `Person` (default) or `Organization` either globally on Settings → MyLinks → Global, or per-page on the MyLink editor. Output includes name, image, description, page URL, and a `sameAs` array populated from all configured social profiles — perfect for Google's Knowledge Graph. Defers automatically to Yoast SEO when Yoast is handling schema. * [New] **ProfilePage schema wrapper** (optional toggle on Settings → MyLinks → Global). When enabled, the JSON-LD output becomes a `@graph` array containing the Person/Organization entity, a ProfilePage that references it via `@id`, and a BreadcrumbList. This is the pattern used by X (Twitter), GitHub, and LinkedIn profiles. Helps search engines and AI tools recognize the URL as a canonical profile page. * [New] **BreadcrumbList schema** automatically emitted alongside the Person/Organization schema whenever JSON-LD is enabled. Two-step path (Home → page name). Google uses this in SERPs in place of the raw URL line. * [New] **Open Graph & Twitter Card meta tags**. Share previews on Facebook, X (Twitter), LinkedIn, and Discord now display your MyLink page properly. Configure globally or per-page; the share image falls back gracefully through per-page → global → Yoast → avatar so something always renders. Defers to Yoast when Yoast is handling Open Graph. * [New] **Default share-image option** (recommended size 1200×630) on Settings → MyLinks → Global, with per-page overrides on the MyLink editor. * [New] **Twitter / X handle field** on Settings → MyLinks → Global. Used for `twitter:site` and `twitter:creator`. The `@` is added automatically if missing. * [New] **Additional Social Platforms** metabox on the MyLink editor (placed right under the existing Social Media metabox so it's impossible to miss). Add Threads, Bluesky, GitHub, Mastodon, WhatsApp, Telegram, Signal, or any other platform via a CMB2 repeater with sortable rows. Each row accepts a name, profile URL, and optional icon. Existing hardcoded 8 platforms (Facebook, Twitter, LinkedIn, Instagram, YouTube, Pinterest, TikTok, Discord) are preserved exactly — no migration risk. * [New] **Accessibility improvements**: skip-to-content link, ARIA labels on every social icon and link button, "opens in new tab" hints for screen readers, graceful avatar `alt` fallback when the name is empty, decorative images correctly marked with empty `alt`. WCAG 2.2 compliant. **Permalink fixes (the long-standing 404 bug)** * [Fixed] Permalink conflicts that caused 404s when MyLink slugs collided with pages, posts, or pagination. The post type now registers with a real `mylink` rewrite slug and resolves slug-only URLs through the WordPress `request` filter with proper collision detection — no more fragile `pre_get_posts` hacks. * [Fixed] Activation hook was registered against the wrong file path, so rewrite rules were never flushed on activation. Activation now flushes rules correctly, and a one-time auto-flush runs on the first admin page load after every update so existing installs heal themselves transparently. * [Fixed] Slug-stripping no longer corrupts post permalinks whose slug happens to contain the word "mylink". The replacement is now anchored to the home URL via regex. * [Fixed] `pre_get_posts` callback was registered twice and contained a logic bug (`'' == isset(...)`) that made the post-type override fire on every front-page query. * [Fixed] `wp_mylinks_request` filter no longer breaks when other plugins add query vars (the brittle `2 != count($query->query)` check has been removed). * [Added] Canonical 301 redirect from `/mylink//` to `//` for SEO consistency. * [Added] `wp_mylinks_cpt_rewrite_slug` filter so developers can change the internal CPT slug without breaking public URLs. **Data preservation & uninstall** * [Fixed] Deactivation no longer deletes user options. The previous code wiped every plugin setting on deactivation, which destroyed configuration for anyone who toggled the plugin off temporarily. A separate `uninstall.php` now handles true uninstallation. * [New] **"Delete Plugin Data on Uninstall?"** option on Settings → MyLinks → Global. Off by default — preserve your settings across uninstall/reinstall cycles. Enable it for a clean removal of all plugin options and oEmbed caches. * [Added] `WP_MYLINKS_PURGE_POSTS_ON_UNINSTALL` constant for users who want a complete data purge (including posts) on plugin deletion. * [Added] Proper `uninstall.php` that cleans up options and oEmbed transients (when opted in), but preserves MyLink posts by default. **Security & code quality** * [Security] Hardened admin settings page: every option output is now properly escaped, every `register_setting()` has an explicit `sanitize_callback`, and tab parameters use a strict allowlist. * [Security] Admin column rendering now escapes URLs with `esc_url()` and `esc_attr()`. * [Security] All user-supplied script/style content output through tightly-scoped `wp_kses()` allowlists. Admin-only with `manage_options` capability gating remains. Custom-script settings now use a dedicated `wp_mylinks_sanitize_raw_script()` callback that strips control characters and normalizes line endings while preserving raw HTML/JS/CSS content. * [Changed] Front-end template refactored to produce clean, predictable HTML output with consistent two-space indentation. PHP control structures now sit at column 0 so their whitespace doesn't leak into the rendered markup. * [Changed] Empty `