Parameter for more than 10 posts in WordPress RSS - php

I need to generate an RSS feed for posts in WordPress that contains more than the usual 10-or-so items. I understand that somewhere I need to do something such as query_posts( 'posts_per_page=-1' );, but I have absolutely no idea where. (I am new to WordPress development.)
I've looked all up and down my includes/feed-rss2.php, and while I see a lot of stuff that generates my feed, nowhere do I see something that actually queries for a list of posts. In fact, there is no reference to "query" anywhere in the file!
Can you direct me to the appropriate place? Better yet, if there is some parameter I can stick in the URL when requesting the feed in the first place, that would be great.
Thanks for any direction you can give.

The simplest way to change the number of posts in your feed is to utilize built in options.
Go to the admin Dashboard, then to Settings, then to Reading.
You will be faced with various options, the most important being:
Syndication feeds show the most recent 10 items
That will allow you to specify the number of posts your feed will contain.
Simple, easy and all via the admin panel!
Source: Settings -> Reading via the Wordpress Codex

Related

WordPress: Too many taxonomies slow down the site

I have a WordPress site with 30,000+ terms for Australian cities/states. Wordpress loads fine with fewer terms but 30,000 terms make it load forever.
I've disabled all the plugins and using the WP-2015 template. Is there a way to add such a huge number of custom terms and make the site work normally?
I have the exact same issue. It turns out the problem is the WordPress is very slow if you have many terms and the taxonomy is set to be hierarchical. Without this option the admin and frontend pages load fine.
It's an old issue from way back which I don't think WordPress can fix with their current database structure.
As a partial fix I improvise by making the taxonomy non hierarchical and set the parent/child relations as taxonomy meta. It only works in the front end where you have full control over the queries.
Is site slow at all places or just a set of pages? If so, which pages?
We have way more terms than you do and we have no problems. I assume that at certain places select queries take too long.
You can install plugin called Query Monitor which can show you what takes long, what triggers it and lots of other useful information which can help you locate and fix the problem
It's old question. The issue is (as #razvan said) for hierarchical because (mainly for administration pages), WordPress create a <select> tag for the selection of the taxonomy. But using non hierarchic taxonomies (like tags) works perfectly.

Integrating simple PHP blogging system into existing website

I want to, create blog page in my website.
There are bunch of huge blogging platforms such as: Wordpress, Blogger ... But the problem is, they are offering a loads of unneeded functions. Of course, I can create simple blog. But it will cost a lots of time and I don't want to reinvent the wheel.
So what I need is, "core" functions of blogging system such as:
Adding, removing, editing posts, inserting attachments, images o posts
Pagination
I don't want to integrate wordpress because of reasons that I explained above.
Any suggestions?
I used cutewnews for a while when I was new to coding (http://cutephp.com) it's pretty much the same as a blogging system. Create posts, edit posts, archive posts, categories, template is very customizable, allow/block comments, require users to register in order to add comments, block IPs, WYSIWYG editor, etc. It's all done in the back end and then you add a few lines of code in your page and the posts will appear. You can also designate how many you want to display per page. It's simple but effective and free. I believe there is a link at the bottom of the script going back to http://cutephp.com/ but you should be able to find it and delete it. It takes about 2 minutes to install and get set up. You don't even need mysql. Will work with any php frame work or coding style as long as you have the ability to create your own blank page where you can plop the code.

different number of posts by RSS feed (in Wordpress)

I've done a bunch of searching on this site, Wordpress.com, and Google, and I haven't found an answer, so I'll try posting here! If it's already been answered, I apologize in advance for my search-fu failure.
I run a podcast and blog using a WordPress/PowerPress combo. Because of the limit on many aggregators, I have to keep my site's main feed under 512kb, so I've limited the number of posts that show in RSS to 50. However, we frequently get people asking for a feed that has our entire catalog so they can pull down our show's full history.
Is there a plugin or some feature in WordPress that would allow me to leave my main feed with its length restrictions but launch a parallel feed that shows everything? Or is there a relatively simple trick I can do in the PHP?
Thanks in advance for any help!
Why not to make the second feed yourself? WP Codex
Yes create your own feed, this link might help with some of the hooks
https://github.com/ChelseaStats/wp-plugin-custom-rss-feeds
disclaimer: link/repo is mine

What kind of website news posting methods are there?

I have a custom made website and right now each time I want to put some news on the front page of my site I have to edit the HTML and then re-upload via ftp.
I'm trying to find a simple feature/program that will allow me to post news to my site without manually having to edit the html and possibly allowing it to have comments.
I've tried wordpress but that seems to have too many features. For example it makes me pick a template, which I don't need because I have a custom website. And it has categories, archives, etc. I don't need all of that.
Any suggestions?
wordpress is quite lightweight imo, but if you think it's too big, you might want to use one of these: http://web.appstorm.net/roundups/self-publishing/10-ultra-lightweight-cmses-for-simple-projects/
Develope your own. Shouldn't take more than a couple of hours.

How to pull "most recent post" data from a Wordpress blog?

I have two Wordpress blogs. I want to pull the "5 most recent posts" from the first blog with post title, date, and link to post and display this data on the other. I don't know if there is a plugin that does this sort of thing already, but just wondering how I can achieve this.
What you need to use here is an RSS from the first blog and display it using a plugin or something you'd code yourself on the 2nd blog. The reasons for this approach are:
simplicity of implementation
security - functions that pull data from the database in blog 1 are not available to blog 2 (db settings, etc). I'm not sure if wordpress provides some sort of an oAuth API yet to pull this data in a secure way
Something like KB Advanced RSS Widget should do for your case.
This also somewhat depends on where you want the posts from "Blog 2" to display on "Blog 1". For instance, if you want them to display in the sidebar and your theme supports widgets, then WordPress has a built-in RSS widget. You just need to give it the RSS feed for Blog 2. That would probably be the simplest implementation.
Otherwise a plugin of some sort to grab the feed would probably work well, as Artem suggested.
Yes RSS would probably be the best way to do it. Here's a post that goes over a variety of ways to do it.
http://www.tipandtrick.net/2008/how-to-fetch-and-show-rss-feeds-on-wordpress-blog-atomrss-aggregator-plugins/

Categories