Publishink
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Exclude categories from the_categoryI found a solution in this very forum!
http://ww.wp.xz.cn/support/topic/exclude-categories-from-the_category?replies=10
See Joe Smalley’s code for functions.php.
Forum: Plugins
In reply to: Link Post format Title in single.phpResolved myself. Code that works is:
<?php if ( has_post_format( 'link' )) { ?> <h1><a href="<?php echo get_post_meta($post->ID, "ext_link", true); ?>" target="_blank"><?php the_title(); ?></a></h1> <?php } else { ?> <h1><?php the_title(); ?></h1> <?php } ?>Forum: Plugins
In reply to: Special Recent Posts: Post OffsetI never got any further with this plugin.
But if I’m reading you correctly, you want to show two/three posts on your main blog page with a large portion of the post below each title. If that’s the case, don’t bother with the plugin and simply use WordPress, as follows:
1. From WP admin go to ‘Settings > Reading’. Change the ‘Blog pages show at most’ X posts to the desired number of posts, 2 or 3.
2. When writing posts, use the ‘more’ tag at the point where you want to end ‘home’ blog page content.
Hope this helps.
Worked it out. The result I’m looking for is achieved using the following code to display the Google short url generated by the plugin:
<?php echo wp_get_shortlink(); ?>Also, in the plugin settings, I should have checked ‘URL shortener integration’, unchecked ‘Use Permalinks for short URLs, and I had ‘Append URL to … Posts’ checked.
Once I’d made these changes, I was able to add the Google short URL to my metadata.
Sorry, Gerald. Just tried this, but it returns the wp shortlink, not the goo.gl shortlink I’m generating using this plugin.
Nor does it display the actual link, rather it returns the default wording ‘This is the shortlink’. I know how to change that wording, but I’m looking for a way to display the Google shortlink elsewhere than at the foot of a post.
The bit.ly linker plugin handles this well, and all is explained, but obviously it doesn’t do Google.
The method you suggest also results in two shortlinks, the one generated by the plugin, which is still at the foot of the post, and the one generated by your suggestion, which is added to my metadata.
Thanks, Gerald.
Thanks, Bradvin.
I’ve updated the free version. It works as expected and looks great.
While I realise the plugin is intended for displaying short messages, calls to action, etc., I noticed that when my message was too long, it simply didn’t display at all. Is there a character count restriction that isn’t mentioned, or have I missed it?
Should point out that I’m not against short messages, as it will force users to rethink what they are writing.
Jeff
Bradvin,
Thanks for the quick response. My site is Since 1964. There’s a contact by email in the footer, but no contact form.
I’ll give Foobar another go this afternoon.
Publishink
Forum: Fixing WordPress
In reply to: Create a long archive of all postsI came up with the following line of code, which I inserted before the loop.
<?php query_posts( 'postbypost' ); ?>Forum: Fixing WordPress
In reply to: Dynamically add a class to a particular postBrilliant, Keesie(?).
Took what seemed like an age to get it working, mainly because I did partial cut and pastes and missed the $ class you had added in < article >.
Many thanks. Consider it case closed and time for me to find a decent resource to learn more WordPress PHP.
Forum: Fixing WordPress
In reply to: Dynamically add a class to a particular postThanks for the response.
A PHP newbie, I’m afraid, so putting your suggested code in the right place is a bit of a challenge! I know what you mean by ‘before the loop’ at least. But I have two loops. Loop one picks up the first post and loop two the other three posts. I’ve defined a max of four blog posts under ‘Reading’ in the admin area.
Here’s some of the code from my index.php if you have time to suggest where I can add you code:
[Code moderated as per the Forum Rules. Please use the pastebin]
Forum: Plugins
In reply to: NextGen want to show single image from post, not slideshowYou’ve surpassed my knowledge on that one! I had an issue with Highslide applying slideshow controls when a single image was enlarged. In the end I dropped HS. I have no experience of Colorbox, so good luck.
Forum: Plugins
In reply to: NextGen want to show single image from post, not slideshowI may be wrong, but it sounds like you’re inserting the two images as a gallery
[nggallery id=X]rather than as separate images
[singlepic id=1] [singlepic id=2]I’m still getting to grips with NGG too, but I’m nearly there. I hope.
Forum: Fixing WordPress
In reply to: add blog blurb on front page of wordpress websiteI am no PHP wizard, just a cut and paster at the moment, but I was trying to do something similar during the early stages of developing my (still in development) site.
The nettuts tutorial here helped me to achieve that. If you analyse the code and break it down into its constituent parts, I’m sure you will find what you need.
Those more experienced in PHP should be able to come up with a more concise solution.