Do you know how to get the URL in the post meta or the first link found in the post content?Maybe you don’t know. Today, I’m going to let you know how you can easily grab the first link from the post content.
How to allow the admin to directly edit the post form front pages,not to open WordPress dashboard.In fact ,it’s easy to implement this function.Follow me！ We are using current_user_can() WordPress function to check the given parameter, which is the level of the current user, and returns true if the level of the current user is superior or equals to the given parameter.
I’d like to show you a simple piece of code that can automatically replace words of your choice by an affiliate link. It’s simple and cool.Though it doesn’t give you as much control as the plugins does, but in most cases this code should be a good solution.
Many WordPress blog users seem to wonder how to add a RSS link displayed under each post,though it’s easy to implement it.The answer is not complex,let’s read on.
WordPress can automatically turns urls in the comment form into links. This can be useful, but as there’s lots of people link to other sources,that most of them being unrelated to the post content. you might want to remove this feature in WordPress.
By default, WordPress does not add a rel=”nofollow” attribute to external links within post content automatically. If you want to do it, here is a simple snippet to force WordPress to add the rel=”nofollow” attribute to every external link in the content.
When you click on “read more” on a WordPress blog, it automatically drops to the point in the article you theoretically just got to the end of.It’s a bit of a pain, If you don’t really like that jump. Remove it with this simple snippet to do it.
The “Read more” link is indeed a great useful WordPress function, which allows you to choose the part of the post to be displayed on the homepage and a “Read more” link for you to see the other part of the post. But how can you change the text of this link? Let’s read on. To achieve this goal, the first step is to edit your posts and create custom fields. Give them custom_more as a key, and the text to display as a value.
If you want to reduce the amount of spammy links in comment text, without removing the automatic linking of urls as shown above, here’s an alternative way to do it.You can simply add a rel=”nofollow” attribute to all external links.
Maybe you want to have an entire category of your wordpress blog with nofollow links, for exemple if your blog have linked to a lot of external resources. Here is a quick and easy code snippet to do so.