Changeset 618061
- Timestamp:
- 10/27/2012 05:36:52 PM (13 years ago)
- Location:
- link-blog
- Files:
-
- 5 added
- 3 edited
-
tags/1.2 (added)
-
tags/1.2/Thumbs.db (added)
-
tags/1.2/link-blog.php (added)
-
tags/1.2/readme.txt (added)
-
tags/1.2/screenshot-1.jpg (added)
-
trunk/Thumbs.db (modified) (previous)
-
trunk/link-blog.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
link-blog/trunk/link-blog.php
r617891 r618061 4 4 Plugin URI: http://www.webworkgarage.com/link-blog-wordpress-plugin/ 5 5 Description: Allows you to create a simple link blog with WordPress. 6 Version: 1. 16 Version: 1.2 7 7 Author: Milton Brian Jones 8 8 Author URI: http://www.miltonbjones.com … … 117 117 <?php 118 118 119 // build the function/template tag for displaying the exernal link URL 119 // build the function/template tag for displaying the exernal link URL (if thre is one) 120 120 121 121 function mbj_link_blog_link_url_display() { … … 123 123 global $post; 124 124 125 $my_post_id = $post->ID; 126 $my_link_url = get_post_meta($post->ID, mbj_link_blog_link_url, true); 125 126 if (get_post_meta($post->ID, mbj_link_blog_link_url, true) != '') { 127 128 $my_link_url = get_post_meta($post->ID, mbj_link_blog_link_url, true); 129 130 } 131 132 else { $my_link_url = get_permalink($id); } 133 127 134 echo $my_link_url; 128 135 -
link-blog/trunk/readme.txt
r617891 r618061 5 5 Requires at least: 3.4 6 6 Tested up to: 3.4 7 Stable tag: 1. 17 Stable tag: 1.2 8 8 License: GPLv2 9 9 … … 13 13 14 14 There are many ways to make a link blog, and many ways to do it with WordPress other than using this plugin, but I made this plugin to do it a certain way that I think is pretty easy to deal with. [More Information](http://www.webworkgarage.com/link-blog-wordpress-plugin/) 15 16 15 17 16 … … 34 33 = How does the plugin work? = 35 34 36 Basically the plugin adds a meta box to your *Edit Post* screen that allows you to add a link URL to each blog post you write. The plugin also provides a function (or template tag) for echoing that link URL in your theme wherever you want it. I know that involves getting into the code, which some people aren't comfortable with, but a lot of people who want link blogs still want to also use a permalink for each post on the index page too, so I didn't want to make the external link URL just replace all the permalinks on your blog. This way, you can do something like put the external link URL template tag around the title of your post, and still have something like "Posted on October 12" formatted as a link to the permalink, `the_permalink()`. 35 Basically the plugin adds a meta box to your *Edit Post* screen that allows you to add a link URL to each blog post you write. The meta box has a heading of *Link Blog Info* and it has one field labeled *URL to link to:*, which is where you'll type in the external URL you want to link to. 36 37 The plugin also provides a function (or template tag) for echoing that link URL in your theme wherever you want it. I know that involves getting into the code, which some people aren't comfortable with, but a lot of people who want link blogs still want to also use a permalink for each post on the index page too, so I didn't want to make the external link URL just replace all the permalinks on your blog. This way, you can do something like put the external link URL template tag around the title of your post, and still have something like "Posted on October 12" formatted as a link to the permalink, `the_permalink()`. 38 39 = What if I want some posts to link to external sites and some posts to link to the internal permalink? = 40 41 If you want your blog to be a hybrid that includes some link posts (linking to external sites) and some traditional posts (linking to internal permalinks), you can do that with this plugin. All you have to do is leave the *URL to link to:* field blank and that particular post will still link to the standard permalink. 37 42 38 43 … … 45 50 = 1.0 = 46 51 * Plugin Launched 52 53 = 1.1 = 54 * Fixed an error with settings page; basically there shouldn't have been a settings page in the first place and that was the problem 55 56 = 1.2 = 57 * Added support for having some posts be link posts and other posts still link to internal permalink
Note: See TracChangeset
for help on using the changeset viewer.