Author and original link in the feed • WordPress Help

The other day, when we saw a mode of showing a hidden copyright to those who copy you more than one commented that this did not work for the RSS feed, the most common method to copy articles. [19659002] Well, we are going to create a code with which to add to the RSS feed the author and link to the original article. In this way, if they read you through an RSS they will have the original link, just like the author of the publication, and it will also work for those who copy your content from the feed.

The code to include, in your ] plugin functions or file functions.php of your active theme is as follows:

// Show link to post and author in feed

function attribucion_feed ( $ content [19659008]) {

if ( is_feed () ) ] {

$ output = '

Written by' . [19659007] get_the_author () . 'in <a href = "' . get_permalink ( ) . '">' . get_bloginfo ( 'name' ) . '. If you are not reading this in '. get_bloginfo (' name ') . ', you will find the original article here … <a href="' . get_permalink() . '"> '. get_permalink () . '.

' ;

$ content = $ content . $ output ;

}

return $ content ;

}

add_filter ( 'the_content' 'attribucion_feed' ) ;

Written by Fernando in WordPress Help. If you are not reading this in WordPress Help, you will find the original article here ... Author and original link in the feed .

Show RSS feed in a WordPress entry

Really, I have never used this, in fact I can not think of what it might be for but I'm sure you'll find it useful.

I mean, through a ] shortcode you can show anywhere in an entry links to posts in an RSS feed .

If you cheer up the trick is to add this code to the file functions.php ] of your theme (as always) or to your function plugin :

// It is imperative that this file exists in order to call the function wp_rss ().

include_once ( ABSPATH . WPINC . '/ rss.php' ) ;

function ver_RSS ( $ atts ) {

extract ( shortcode_atts ( array ] (

"feed" = > 'http: //'

"num" = > '1'

) $ atts ) ) ;

return wp_rss [196590] 07] ( $ feed $ num ) ;

}

add_shortcode ( 'rss' 'ver_RSS' ) ;

The variable "num" you decide it with the number of links that will be displayed.

Oh, and if you think of a (reasonable) situation to use this trick, you tell me, I do not get it, today I must be thick.

Add anything at the end of the entries • WordPress Help

By now you will know how cumbersome it is, when you change the theme in WordPress, go recovering all those codes that you have inserted in the different files of the previous topic so they are also in the new one.

Of course, one way to avoid this annoying process is to use plugins for most things but is not always an option valid .

One of these situations, very typical, is those codes that we add at the end of our entries whether they are Adsense scripts, codes where the person who wrote the entry is counted, texts to encourage subscribing to the RSS feed, to follow us on Twitter or whatever you can think of.

Normally, for this, we edit the file single.php of the subject and add anything there, but to keep it tidier we will do it more elegant .

It is in these cases when it is best to use our function plugin or edit the file functions.php of the theme, which we can then use in the new one.

The code to add would be something like this:

Then, of course, "tune" it to your liking.

NOTICE : this publication is from two years ago or more. If it's a code or a plugin it might not work in the latest versions of WordPress, and if it's a news story it might be obsolete. Then do not say we have not warned you.

Loading …

That may also help you:

Exclude WordPress RSS feed categories • WordPress Help

Let's say that, for example, you have a website about scientific divulgation but, eventually, you publish your first photos of landscapes in the category " photograph ."

As you can imagine, surely your visitors will be for your scientific articles, not for your photographic progress, so if you subscribe to your RSS feed you probably do not care about your photos (notes Matt ).

Well, if you want to exclude some category from the RSS feed is very easy, you just have to add this code to your function plugin or your file functions.php of active topic:

Where category "-8" is the ID of the category you want to exclude. You save the changes and you already have it.

If you do not dare to use the code you can use the plugin Ultimate Category Excluder which has a settings page in which to check the boxes of the categories to exclude .

Input thumbnails in the feed (plugin) • WordPress Help

Our friends from Mecus have published in the official repository a plugin, Post thumbnails in feed which allows to display the image thumbnails (featured images) in the RSS of a WordPress .

The configuration is simple, you just have to choose the size to show thumbnail (or less), as we did with the code how to put images highlighted in the feed .

Now you can do it by hand or with plugin.

Remove RSS feeds completely in WordPress • WordPress Help

There may be situations in which you do not want to offer, for a particular site, a RSS feed to your readers. It is not so strange in these days that the use of feeds has been left to advanced users of the network, since the rest follow blogs and profiles through social networks.

Anyway, if you meet that need the process is really simple you just have to add a code to the file functions.php of your active theme, the following …

function disable_all_feeds () {

wp_die [19659006] ( __ ( 'Sorry, our content is not available via RSS, please visit <a href = "' . get_bloginfo ( ] 'url' ) . '"> the web to read it' ) ) ;

}

add_action ( 'do_feed' 'wpb_disable_feed' [19659006] 1 ) ;

add_action ( 'do_feed_rdf' 'wpb_disable_feed ' 1 ) ;

add_action (' do_feed_rss' [19659006] 'wpb_disable_feed' 1 ) ;

add_action ( 'do_feed_rss2 ' ' wpb_disable_feed ' 1 ) ;

add_action ( 'do_feed_atom' 'wpb_disable_feed' 1 ) ;

add_action ([19659013] 'do_feed_rss2_comments' 'wpb_disable_feed' 1 ) ;

add_action ( 'do_feed_atom_comments' 'wpb_disable_feed' 1 ) ;

Save the changes and you already have it.

How to create a blog aggregator respectful of the sources

I already explained some time ago the systems of creating entries from RSS feeds but the entry was a little short, because I limited myself to mention the different plugins or scripts that allowed the import of content, today I want to tell you a concrete experience of how to carry out an aggregator of blogs, a planet if you prefer to call it that, that respects the sources of the contents.

I am referring to the blogs from UPyD that I created a few days ago, which I think is a good example of how to create a web of this kind in a respectful way. The step by step would be more or less like this …

  1. Choose a well-defined theme for the aggregator. A site of this type only makes sense if it concentrates publications of a specific category and allows visitors to find in one place the most relevant information about the topics of interest. It is worth nothing an aggregator "of all a little", for that we already have the general information portals. ¡Segmenta!
  2. Choose a magazine style theme (or magazine), which I understand is best suited for this type of website that will show a lot of content. In a blog format theme the amount of publications that we are going to share would not be shown in all its splendor. In addition, these types of topics are already prepared for two vital issues:
    • Normally they only show the excerpts of the entries
    • They usually have a system of automatic publication of a thumbnail of the image that will illustrate the extract

    This is important because what we are going to try is not to steal visits to the sites generating the content by offering the complete texts but only extracts and an image that encourages visiting the original website.

    Also, of course, we can do it with any topic, simply editing the file ' index.php ' and, where we find …

    we replace it with …

    With this we get to show only part of the entry, requiring to click to see it complete.

    the aggregator of the blogosphere of UPyD I have chosen Magazine Basic of Bavota San since, in addition, it allows to choose between several structures and I thought it was very interesting one of them that highlights much the most recent publication, a little less the next two more updated and less for the rest, besides being quite customizable and easy to use.

  3. The following is install a system that imports tickets from other sites. For these purposes the most updated, simple and configurable is FeedWordPress . Once installed, you only have to add the URLs of the sites you want to promote from our aggregator. The plugin allows you to add them one by one or in a block, which makes things much easier. In addition, you do not need to know the URL of the sites' RSS feed, you simply add the URL and the plugin detects the available feeds, you simply choose which one you are going to use.

    Then, you can configure a lot of customizations for each feed or global, as each how much the plugin will look for new entries, if the titles of the entries will link to the local copy or the original site, if the generated posts will allow pingbacks and comments and much more.

    Here, for that our aggregator is respectful with the sources you should always mark the options that the links always direct to the original source, and that no comments and / or pingbacks are allowed in your aggregator. In this way forces the visitor to read the full article on the original site, recognizing the authorship.

    There are many more options, but these are the vital ones for a respectful aggregator.

  4. There are times when FeedWordPress has a bad habit of publishing duplicate entries, so if you see this happens, you also install the plugin FeedWordPress duplicate post filter which reviews the database in real time and erase possible duplicates. However, I do not recommend it by default, only if you see what happens to you, because in some servers this plugin sometimes blocks FeedWordPress updates. You have to try.
  5. Always, always, ask the sites you want to include in your aggregator if they agree that their publications are included in your planet. Create an effective and respectful aggregator with the sources will offer more visits and improve your "link building" and positioning, but the choice is the creator of the original content, do not forget.
  6. Choose well the sites to include ] in the aggregator. The "donor" content sites must be updated frequently and be very focused on the theme chosen to add value to the visitors and the content contributors themselves. If the visitor does not see his expectations of segmented and classified information satisfied, he will look for another place to find the information of interest.
  7. Create a page clearly visible with a contact form so that anyone can offer their site (related to the theme) to appear also in the aggregator. With this the visibility will grow, you will contribute more value to the aggregator and will give more benefits to the included sites.
  8. Force that the links open in a new window (or tab) always. The objective of this is so that the habitual visitor of the aggregator does not lose the focus of the site when he wants to review a specific news, and that it will be easier for him to later review more news of his interest. For this I recommend using the plugin Open external links in a new window since it meets strict XHTML and if a browser does not support Javascript does not return errors. Simple and effective
  9. Disseminate – more if possible – the content by creating a Twitter account and a Facebook page that automatically publish the contents of the aggregator. With Tweetable you have everything you need for Twitter and for Facebook and other networks try any of these possibilities or this guide from my partner David . With this, it will also not take time, help attract visitors and disseminate the content.
  10. Do not install any SEO plugin in the WordPress of the aggregator, remember that the goal is to cede visits and positioning to the creators of content, not attract it to the aggregator. In addition, this type of sites, because of the segmented information and frequency of updates, already tend to attract search engines quite well because they feed them with frequent content and in large quantity, which is not bad in itself as well facilitate the (shared) popularity of content sources.
  11. Offer a mobile version of the site with WPTouch and WiPad do not forget to facilitate viewing to the users always connected. With this you will also contribute value, offering features that many times the content generators are not offering and, as always, the visits keep coming to them.

And that's it, from the moment you set it up and, if you want, Personalize it a bit, you will have a site that is updated only with the content of the original sites . You will only have to include new sites that request their inclusion and, from time to time, check the syndicated feeds screen to verify that the updates are being automated normally and without errors (sometimes it happens that there are original feeds that have failures and stop syndicating In addition, this type of aggregators, when done well, have proven to produce some interesting (and good) collateral effects, namely …

  • Content generators are forced to update their sites more for "Win cover" thanks to the distribution of entries of the magazine style themes, which tend to give more visibility to the most recent entries.
  • They teach content generators to create better headlines, because the aggregator allows them to compare themselves – visibility effects – with sites of similar content and learn the importance of a good headline .
  • They generate community, because the same generated res of content shows them other sites that deal with the same subject that they often did not know.
  • Teach content generators that a picture is worth a thousand words, encouraging them to always accompany their entries with images that illustrate the content and, in the aggregator, attract visitors.

Personally I am very happy with how the aggregator of UPyD blogs has been, and the generators of the contents published there are very satisfied with the increase in visits and visibility of their blogs

Have a good time and respect the creators of content!

NOTICE : this publication is from two years ago or more . If it's a code or a plugin it might not work in the latest versions of WordPress, and if it's a news story it might be obsolete. Then do not say we have not warned you.

Loading …

That may also help you:

Elegant "under construction" page

If you are about to launch a project with WordPress and do not want to show the typical screen of En Construcción, ugly, static and without contributing anything new, you can do something much better than that.

Would you like to show the time? What is missing for the launch date ?, and the possibility that your future readers subscribe to the feed ?, is it more you want to also become fans of your Facebook or Twitter ?, or maybe you want to allow access to Certain profiles, because all that you can do with Custom Coming Soon .

This plugin offers you options to show a page "under construction" that contributes something to your project, that will win you visits from before of its official launch.

Do you want to see how it looks? here's a demo . Of course, you will be able to customize the look and everything else, you just have to install the plugin and configure it.

Show RSS feed wherever you want

We already saw a mode of show an RSS feed on your WordPress site but now there is a new method – for WordPress 2.8 and higher – it does not use the Magpie or Snoopy class , but SimplePie and FeedCache, to retrieve an RSS feed.

You just have to copy this code and put it where you want to show the RSS feed chosen on line 3: