Mark Jaquith
Forum Replies Created
-
Forum: Plugins
In reply to: [Page Links To] Doesn't work with an URL with @ in itOh! Do you mean it REDIRECTS you to the wrong URL? That is, the link works from “view post” in the admin, but going to the original WordPress URL results in a bad redirect?
Forum: Plugins
In reply to: [Page Links To] Strict validation issueI’m curious if you’re actually using XML features on your sites. I’d thought everyone had given up on the “HTML as a valid subset of XML” dream a decade ago. I’ve pretty much embraced HTML5.
You can use domain relative links by starting with a slash.
So, if your site is
http://example.com/and you want to link tohttp://example.com/forums/you can set the URL in Page Links To to/forums/Forum: Plugins
In reply to: [Page Links To] It cant redirect to subdomainYou can point it anywhere you want, but it’s up to you to make sure that the URL you point it to actually works!
Forum: Plugins
In reply to: [Page Links To] Open links in a new tab is not workingThe jobs links are supposed to open in a new tab? If so, the problem is that the job listings are loading as a separate request (an XHR, or AJAX request), after the page loads. So Page Links To doesn’t “see” those links on the page, and thus doesn’t write out the code to intercept their clicks in a new window. You might try just altering the code of the jobs plugin you’re using to include
target="_blank"in the links it prints.Forum: Plugins
In reply to: [Page Links To] Assign CSS class to linkYou’d have to do it in JavaScript. The way the plugin works, it doesn’t have an opportunity to inject classes, as it is just working on the URL (href) portion. This is how the “open in new tab” feature works.
Not gonna add that to the plugin though.
Forum: Plugins
In reply to: [Page Links To] Version 2.9.4 BrokenWhat was the problem?
Forum: Plugins
In reply to: [Page Links To] I cannot get your plugin to workWP4.1On an attachment page? What happens?
Forum: Plugins
In reply to: [Page Links To] 301 or 302?Yep. 301.
Forum: Plugins
In reply to: [Page Links To] Plugin not workingDid you figure it out? I don’t see a “Store” tab there.
Forum: Plugins
In reply to: [Page Links To] disable for postsYou can hide it in Screen Options while editing a post, and then it will be hidden for you. If you want to hide it for all authors of your site, try this: http://tinyurl.com/qbskpcs
Here’s some sample code. You’d have to write code to read the CSV (there are PHP functions to do that), loop through the rows, and dynamically insert the title and URL where
testandhttp://example.com/are:$id = wp_insert_post( array( 'post_title' => 'test', 'post_status' => 'publish' ) ); CWS_PageLinksTo::$instance->set_link( $id, 'http://example.com/' );Forum: Plugins
In reply to: [Page Links To] Page Links To changes language of qtranslate/mqtranslateLike, you want the URL you’ve set to vary based on the currently selected language?
Forum: Plugins
In reply to: [Page Links To] Can this work on optimizrpress?I’m sorry, I’m not familiar with Optimizrpress theme, and I’m not really sure what you’re trying to do. You can use the plugin to re-point a WordPress page to another URL.
Forum: Plugins
In reply to: [Page Links To] What does this plugin do?Well, it actually changes the URL that the post or page points to. So, say you have a blog. But your friend asked you to write something over at her blog. You could write a small post on your blog that says (in the content) “hey, I wrote this thing on Jessica’s blog, here’s a link:
<a href="http://jessica.example/post/">Post for Jessica</a>". Or, you could write a post called “Post for Jessica” maybe fill in the excerpt as a teaser, and then use Page Links To to point it tohttp://jessica.example/post/. Then people would be reading your blog, and that post excerpt would show up on the front page, and if they clicked the title, they’d be at the post on Jessica’s blog. So it allows you to integrate external URLs in ways other than just putting links in post content.Another use use is in menus, or in automated page lists.
Another use case is when you want to “move” a specific post from one site to another. Because anyone with the old URL will get a redirect. So, say you had some cool photo posts but then started a separate photo blog. You could use this to redirect them.
I’m not sure if this is the right use for cross-linking posts. You might want to look for a “series” plugin, of which there are a few. They generally use taxonomies behind the scenes you group your posts into collections. Here’s one example: https://wordpress.org/plugins/organize-series/