Get only one paragraph from post through RSS - rss

I googled and googled try to find something relevant but no luck.
I'm setting up a 'daily tips' campaign for a client and I have to use RSS to do it.
In more detail I use MailChimp and I create a RSS-Driven campaign.
On the other side in the blog of the website there are daily scheduled posts.
I'm trying to find a way to only get the first paragraph of the each post to give it to MailChimp and include it in the email.
So that the structure ends up like this:
Post title
Post's first paragraph
Read more link
Any ideas?

I don't think this is possible within Mailchimp directly, but you you might try FeedsAPI if you have a specific feed, even perfect if it's a not so popular feed since they can create specific extraction patterns for cases like this, it's however a paid service.

Related

how to create search filter in wordpress

I have a website, a real estate website and I need to have a search filter, so my client can easily identify what they want or what expected budget they can! I have see this website showing same way to implement click here.
can somebody guide me what should do to make this.
If you can suggest a tutorial I appreciate it.
To pull it off you need some good understanding of The Loop and how to create personalized queries with WP_query
In a nutshell, the page you provided has its real estate logic in a custom post type named "Listings" and some tags such as "bedroom" and "price".
I am not allowed to post more than 1 hyperlink, so please use google and search the words in bold style.
A page template performs a query with the desired filters, such as "3 Bedrooms" and "200000 $", and displays the results in several rows.
A custom post type and tags, since the listing will not automagically appear in your site's backend....
If you ask me, wordpress isn't suited for this kind of features.
I say this beacause you will often need custom plugins such as advanced custom fields, to accomplish trivial tasks like this one...
It will ultimately be a stressful situation for you.
I hope it helps.

How to get news from another website via RSS

I have a blog and I want some automatically - generated news on it. I have found a few news websites which generate RSS feeds and I want to auto-post them to my blog.
I have done this using the WP-o-Matic plugin, but since the RSS feed's content is limited to some point, the entire news' text does not show up on my blog.
Is there a way to get the whole content of the post the RSS feed is linking to ?
You're going to have to code this yourself. Let's say you subscribe to an RSS feed for Google News. You can parse their feed to get the original URL of the summarized article, but then you're going to have to make a request to that URL and fetch the content on that page. Unless the source happens to make whole articles available via its own RSS feed (unlikely), you're probably in markup-scraping territory.
Have to say this: consider the ethical/legal implications of duplicating entire original content on your site (as opposed to summary snippets), even with proper attribution.
For people that need a solution to the problem I described ..
There are services like:
http://fulltextrssfeed.com/
http://fullrss.net/
http://www.wizardrss.com/
You can use them to do the job for you. They fetch the RSS feed, crawl the websites and extract the full articles for you. After that, they provide a RSS feed of their own with the extracted data.
You can combine the extracted data (the RSS feed the service provides you with) with a wordpress plugin like WP-o-Matic. That way the plugin connects to the RSS feed of the service and the service extracts the content from the original RSS feed.
Have in mind that those services are not perfect. Due to complex website layouts, these services might be unable to find the content, or include things that are not a part of the articles. A manual check of the output is advised.
To the services alrady listed at the top, you can also check http://www.FeedsAPI.org , FeedsAPI brings to the table that it takes the process of posting the articles directly to your secret blog email for you, so all you need to do is manage the publication in the wordpress admin, and you can also get it targeting a specific feed to receive the results you want. Anothe alternative will be the combinations of one of those services with IFTTT . I hope this could help.

wp email publishing with custom content type?

having researched wp forums and only found people asking this question without any answers, I resort to the source of all truth (stack overflow).
I use wordpress custom post types (Custom Post Type UI plugin) and find it very handy.
Now, I want to be able to email-publish some content via WPs built-in email publishing system, but by default that is set up to only publish as regular posts.
I am aware that I can choose categories for the emailed content, but I would very much like to keep all the pages and content of my news (=blogposts) feeds the way they are, being able to put the email-published content into a content type of its own would really help me out.
So I wonder if anyone has done that, and how you would go about it. Thanks for any input.
Not sure if this helps people looking for a solution, but I managed to do it like this...
When a post is submitted for publish by WordPress default email2post, there is an action hook named 'publish_phone' running, so you can get the post there and change its type like this:
add_action('publish_phone','custom_type_by_mail');
function custom_type_by_mail($post_id){
$p = get_post($post_id,'ARRAY_A');
$p['post_type'] = "my-custom-type";
wp_update_post($p);
}
I resorted to converting it into a post category instead of its own content type. I know not whether there be any other solution =)

How to use Yahoo Pipe to build a new feed based on a feed whose content is multi-paged?

Currently, I subscribe a feed. It's content has multi-pages, but the feed's item only points to the first page. So if I only subscribe this feed in google reader, I can only view the first pages's content.
So I think there might be some way to get the full content. But after I searched the web, I can't find any tutorial on what I'm looking for. So can anyone provide some information on how to do this?
You will need to fetch the web page from the url in feed and get the additional pages and add to the content. I can provide you with tutorial but will need the url of feed you are aiming at.

Can I have both full text RSS and an excerpt RSS in Wordpress?

I like giving my users the full text RSS feed, but I also have a few sites which pull the RSS feed and link to us from it. They want me to provide the excerpt/blurbs for the articles rather than the full text. Can anyone give me some direction on how to make this happen?
It should be possible. Wordpress has multiple feed types (see WordPress Feeds) and there are hooks for each feed type (see Feed Actions API). This suggests that you should be able to set up one feed type as a partial feed, and another as a full-text feed. Basically, you'd just be re-writing one of these feed types to ignore the setting you indicated on the "Reading Settings" admin screen.
I bet this could be done w/ a pretty simple plug-in.

Resources