need help on wordpress feeds query parameters - wordpress

may i know how do i set the number of feeds displayed on a word press blog?
for instance, i used
http://beautifulreminisciencezz.wordpress.com/?feed=atom&year=2009
But it returns me only ten results.
For blogger, I know the query parameter is 'max-results'
However,t here's nowhere in wordpress where they mentioned the query parameters for this.
Anyone have any idea?

I think you can set it from the Reading Settings in Wordpress.

I'm just starting with WordPress myself, but I did notice the paged=<num> query parameter to get that num'th page of results. Looks like combining this with order=ASC&orderby=date should allow full in-order import (over several pages) if you're doing this programmatically.

Related

Wordpress shortcode function - Get current status of Twitch Live

I've searched a lot and I couldn't find anything, I'm looking for a way to create a function to get the result if a channel is streaming or not and store the result in a shortcode. I have tried a thousand ways to make a request but I am unable, now I just want to get the shortcode so I can use it for my website.

How to search through all WooCommerce products/categories...?

I'm developing an ASP.NET Core web application using WooCommerce REST APIs (I'm also using the WooCommerceNET library), and I need to implement a search text input field with a simple Search button.
No problems with that, the issue is that WooCommerce returns 100 items max per page, so the following does not work (this code runs after the property Products has been populated, of course):
if (!string.IsNullOrWhiteSpace(searchString))
{
Products = Products.Where(p => p.name.Contains(searchString)).ToList();
}
Since my WooCommerce website contains 23k+ of products, I can't just do multiple (230+) requests, it would take forever.
I thought about having a parallel local database or something similar which gets populated when it's needed, but then I realized that maybe, if I'm lucky, it exists some sort of parameter that I can pass to the request in order to filter the research directly in the http request, so it would already return 100 results of my research.
I didn't find anything about that googling around, so I'm asking here if this is a thing and if it's not, then how to solve my problem in a different way.
It was pretty easier to find than I thought, indeed there is a parameter which can be used in the link, here's an example that works for me:
/wp-json/wc/v3/products?search=stringToSearch

WordPress custom query-string not index by Google

I have a WordPress site (www.AgingSafely.com) and on it I have built a plugin to show the “Details” about various Adult Family Homes (AFHs). All of the details are retrieved out of database table via a query-string (?asi_id=WA_Af_nnnnn) where the n’s are the AFH’s license number. I have created a “Site Map” page (https://www.agingsafely.com/asi-site-map/) that lists an overview and has links to the Details Page for each AFH, so that Google can find and link them. They are also listed in sitemap.xml.
Google isn’t indexing them, but is indexing the more normal pages on my site.
I figure that I need to change my URLs from https://www.agingsafely.com/adult-family-home/?asi_id=WA_Af_751252 to something like https://www.agingsafely.com/adult-family-home/AFH/751252 to make Google happy. To add a little more complication, The “Af” in the query string is for “Adult Family Home”. The plugin also handles “Boarding Homes” “Bf” and “Nursing Facilities” “Nf”.
How do I get the URL with the ?asi_id=WA_Af_751252 rewritten to AFH/75152
This appears to two parts: Change the links in the plugins to the /AFH/nnnn format which should be easy. Have some re-write rule that converts the new URL format back to a query string.
What is the best way to do this?
Does Google ignore query strings?
Are you planning on a lot of people entering in that particular string in a google search? Possibly some will, but probably not. If you want people to be able to easily find your products/homes via google searches, yes I would change the links to something like https://www.agingsafely.com/adult-family-home/AFH/751252. Literally spell out as much as you can, unless a string is a popular part number that people search for or something like that.
Also, is your site integrated with google analytics and google search console? I would definitely do that if you haven't.

Analytics Experiments Dynamic URLs

I have a lot of product pages like this:
www.example.com/catalog001/item123
www.example.com/catalog002/item321
www.example.com/catalog002/item567
Every catalog and product(item) have its own numeric id.
Product pages are similar. Just different product image, price, title.
I tried to use Regular Expressions to set up original url pattern in Analytics Experiments:
www.example.com/catalog(\d+)?/item(\d+)?
Is there any way to set up original url pattern?
I'm not quite sure what you're asking. It sounds like you want to test many different product pages without setting up many different experiments, presumably to test two different product page layouts.
If so you can use relative urls in the experiments interface for that, there is no need for regular expressions. Create an experiment for one product page, select relative urls for the variations, enter a query string (?foo=bar) or fragment identifier (#foo=bar) that triggers the variation page, add experiment code to all the originals and the test will be enabled for all your product pages, not just the one url you entered in the interface.
If you were after something else I suggest you re-word the question to explain the actual problem rather than your attempt to solve it.

Wordpress - SQL Query

Im trying to write a query to get all posts that are in a certain category that have been posted in the last 60 days, but im unsure as to where to find category information on posts in the database.
There doesnt seem to be any info in the wp_posts table.
Could someone help me form this query, im quite confused.
Cheers,
The reason why the post table doesn't have categories is because all that is done through the taxonomy system (more info) (which takes a few minutes to get your head around).
You can just use query_post() function to query posts from a specific category (see category__in on the linked page). That takes the headache out of taxonomy query.
Alternatively, if you don't want to mess with the main loop (which query_post will), you can create an instance of WP_Query and loop through them with that.
Edit: This page might also interest you

Resources