Articles
Echo Images inside a Post into the Loop
Here is a useful trick. Want to call or echo an image into your blog post with our using the custom fields? Well this could be tricky, but I know of a way.
All you have to do is print these lines of code into your
index.php
or home.php
inside the loop:
<?php $id =$post->ID; $the_content =$wpdb->get_var("SELECT post_content FROM $wpdb->posts WHERE ID = $id"); $home = get_option('home'); $pattern = '!<img.*?src="'.$home.'(.*?)"!'; preg_match_all($pattern, $the_content, $matches); $image_src = $matches['1'][0]; ?>
then after write:
<?php if($image_src != '') { ?> <a href="<?php echo the_permalink() ?>" rel="bookmark" title="Link to <?php the_title(); ?>"><?php the_title(); ?></a><br /> <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><img src="<?php echo $image_src; ?>" alt="<?php the_title(); ?>" /></a> <?php } ?>
That’s all! This will look for the first image in your post and echo it in the loop, could be used to show off those pretty thumbnails for the post..
Tips & Tricks
How to: Open external links in a new window
Over the weekend, I attended WordCamp Denver, and I was asked by John Hawkins how to force links to open in a new tab with out editing the source code. So, today lets learn a simple jQuery trick to open all external links in your site in a new tab or window. We are going to make sure you have jQuery active on your site, you can do this easily in WordPress, since it’s bundled with the latest installations. Use this code in your header: <?php wp_enqueue_script('jquery'); ?>
then, below the wp_head
add the following:
<script type="text/javacript"> var $j = jQuery.noConflict(); $j(document).ready(function() { //external attribute $j("a:not([@href*=http://YOURSITE.com/])").not("[href^=#]") .addClass("external") .attr({ target: "_blank" }); } ); </script>
That’s it, just make sure you change the http://YOURSITE.com to your website.
Update
If you like you can remove the var $j =
and replace all $j
with simply just $
Artificial Intelligence
A Comprehensive Guide to the Best AI Writing Tools: Expert Recommendations.
This article provides a comprehensive overview of the top 10 AI writing tools as voted by their peers. The tools include Grammarly, Writesonic, Quillbot, Jasper, OpenAI GPT-3, Wordtune, ContentBot, Article Forge, Hemingway, and ProWritingAid. Each tool has its own unique features and pricing options. The article concludes by stating that the choice of the best AI writing tool ultimately boils down to personal preferences, budget, and UI design.
In a quest to identify the best AI writing tools available, an innovative approach was taken: asking 39 AI writing tools to recommend their top 10. The results provide a fascinating insight into the AI writing tool landscape, showcasing the most favored tools by AI themselves. Here, we present the top 10 AI writing tools as voted by their peers, along with key features and pricing details.
Unveiling the Top AI Writing Tools
1. Grammarly (67% of votes)
Pricing: Free; paid plans from $10/month
Grammarly, primarily known as a typing assistant, has expanded its capabilities with AI text generation features (GrammarlyGO) introduced in April 2023. This tool assists in content creation and reviews it for grammar, spelling, punctuation, and clarity. A notable feature is its built-in plagiarism checker, which is beneficial given the tendency of large language models (LLMs) to plagiarize content unintentionally.
2. Writesonic (62% of votes)
Pricing: Free up to 10,000 words/month; paid plans from $20/month
Writesonic serves as an AI-powered writing assistant, facilitating the creation of various content types, including ad copy, text messages, product descriptions, and more. Its Brand Voice feature ensures consistency and tone with AI-generated content, offering a tailored approach to content creation.
3. Quillbot (56% of votes)
Pricing: Free; paid plans from $19.95/month
Quillbot offers a multifaceted platform with features for paraphrasing, grammar checking, plagiarism detection, and summarization. Its ability to generate new ideas, examples, and viewpoints makes it a versatile tool for content generation.
4. Jasper (54% of votes)
Pricing: Paid plans from $49/month
Jasper, formerly known as Conversion.ai and Jarvis, stands out for its marketing-focused capabilities. It offers templates for popular copywriting frameworks and a “Ridiculous Marketing Ideas” feature, providing creative sparks for unique marketing concepts.
5. OpenAI GPT-3 (49% of votes)
Pricing: Free; $20/month for Plus
GPT-3, the precursor to the widely used ChatGPT, remains a versatile tool for all writing-related tasks. Despite being based on training data up to 2021, it’s still a reliable tool for creating outlines, blog posts, and other content types.
6. Wordtune (46% of votes)
Pricing: Free (10 rewrites and three prompts/day); paid plans from $9.99/month
Originally a rewriter, Wordtune now also generates content. Its rewriting feature suggests multiple variations for any highlighted sentence or paragraph, and its “Spices” prompts enhance content with unique elements like historical facts or jokes.
7. ContentBot (41% of votes)
Pricing: $1 for Prepaid (free 10K words); paid plans from $19/month
ContentBot is another AI-powered tool aiding in the quick generation of high-quality content. It covers various content types and offers a “Prompts” library for template selection. A highlight is its ability to generate entire landing pages using just keywords.
8. Article Forge (38% of votes)
Pricing: $27-$247/month (depending on the number of words)
Like other tools on this list, Article Forge speeds up content generation. Unique features include specifying topics to exclude, adding images and videos, and replacing keywords with links.
9. Hemingway (36% of votes)
Pricing: Free (web); one-time payment of $19.99 for the app
Hemingway, primarily a content readability grader, is rumored to be adding AI rewriting features. While not an AI writing tool per se, it helps improve the clarity and readability of content.
10. ProWritingAid (33% of votes)
Pricing: Free (500-word limit); $30/month for premium OR one-time payment of $399
ProWritingAid, known for its grammar-checking capabilities, also offers rephrasing suggestions. It’s more akin to Grammarly than AI content generators like Jasper, but it still plays a crucial role in refining content.
Other Plugins, Services, and Tools that may interest you. These are affiliate links some I use, some I don’t, so before using, please investigate thoroughly SemRush, Invideo, Squirly Products like Squirly SEO, Gravity Forms, Wpforms, OptinMonster, Buy Website Traffic, AI-powered Marketing, Press Release Distribution Made Easy, Track and Protect your Online Marketing, #1 Press Release Distribution Service, Email lists and Distribution Tech, Placeit Envato, Monster Insights, SmashBallon, Icegram, HubSpot, WPwebHost, ConvertKit, Rytr, Canva, QuillBot, Shortly AI, Market Muse, Content Studio, Social Pilot, Strinkingly, CircleBoom, TailWind, Hotjar, The Hoth, Linkilo, CleanMail, HexoWatch, NetPeak, SerpStat, SiteChecker, SproutSocial, WeVideo, Social Dog, EzMob, Sign Now, Tidio, WP Data Tables, Copymatic, HeyGen, Synthesia, Fliki, ElevenLabs, ADcopy, Beehiiv, EduBirdie.
Final Thoughts
This list, perhaps not surprisingly, showcases the most recognized and trusted tools in the AI writing domain. Based on similar technology and often limited by their training data, these tools still provide a valuable benchmark for those seeking the best AI writing tools. Ultimately, the choice boils down to personal preferences, budget, and UI design, making this list a comprehensive guide for anyone looking to enhance their content creation process with AI.
News
WordCamp Denver 2009 Boradcast
Well hello to everyone, hope you are going to have a great weekend! I am heading to Denver Colorado tonight for the first WordCamp. I have decided to help out some here a bit, and I will be using my web cam to broadcast live inside the Denver Art Museum. Plus I am video recording with my HDD camera, so that someone can put all the video together in the end and publish it to WordPress TV
Morning Update:
Looks like there is not a good location to broadcast live from the morning session. Will have to wait till the afternoon.
Afternoon Update:
Got in the technical meet late, didn’t get a very good seat against the wall in the corner. So the angle of broadcast would not work so good. Also uStream isn’t picking up my web cam 🙁
I beleive you can view the rest of WordCamp Denver (Blogger Trac) at http://bitwirelive.com
-
Tips & Tricks4 months ago
WordPress Security Hacks
-
Pages4 weeks ago
Write For Us – Guest Post
-
Showcase1 month ago
StylizedWeb.com
-
News3 weeks ago
How to: Show/Hide any div box with jQuery in WordPress
-
Tips & Tricks3 months ago
How to: show/hide a widget in WordPress with jQuery
-
Tips & Tricks5 months ago
Remove the title attribute using jQuery
-
Plugins2 months ago
Top Membership plugins
-
Tips & Tricks1 month ago
Limit the characters that display on the_title
Austin
December 8, 2008 at 3:54 am
Assuming the image has been added using the WP uploader, here’s a way of doing the same thing using the WP API, which might have a performance advantage:
<?php $attachments = (array) get_children(array(‘post_parent’ => get_the_ID(), ‘post_type’ => ‘attachment’));
if ( ! empty( $attachments ) ) :
$attmt = array_shift($attachments);
$image_thumb = wp_get_attachment_thumb_url($attmt->ID); ?>
<a href=”<?php echo the_permalink() ?>” rel=”bookmark” title=”Link to <?php the_title(); ?>”><?php the_title(); ?></a><br />
<a href=”<?php the_permalink() ?>” rel=”bookmark” title=”<?php the_title(); ?>”><img src=”<?php echo $image_thumb; ?>” alt=”<?php the_title(); ?>” /></a>
<?php endif; ?>
frosty
December 8, 2008 at 10:59 am
Thanks for that one!
Picsbuzz
January 7, 2009 at 9:57 pm
This is great script, it helps me a lots!!! Thank you so much!!
I wonder if this script can grab the first image in the post which hosted on share host like: flickr or imagesharkus?
frosty
January 7, 2009 at 10:05 pm
Your welcome, I am not sure. If we could find out details to their database it may be possible.
Nick
January 15, 2009 at 12:38 pm
That can be useful
Nick’s last blog post..Montana Library
Thomas
August 10, 2009 at 11:00 am
Hi all,
First of all, very nice script. I noticed that the output was in html (ie, img src and thumbnailing).
Does anyone know of any snippet to be able to echo the image via php, without having to name the actual individual image file (eg. tree.jpg), and instead using a variable from a database that names photos in a directory.?
thanks
tom
Maor
September 5, 2009 at 5:33 pm
Thanks for the tip, liked it!
.-= Maor´s last blog ..וורדפרס 2.8+: איך לא להציג קטגוריות מסוימות בתפריט הצדדי? =-.