WordPress使用query_posts分页时,分页不成功的方法

下列函数,是使用Query_post函数进行输入出。下方的例子中,每页分为4个。

但是按照这个例子,下一页是不成功的。直接报404错误。

因为在后台-外观-设置-阅读里,设置的是每页展示10篇文章。这导致了某种冲突。

<?php  // 下面这一行代码是必须的,不然你的首页不能分页global $wp_query;$cat_ID = get_query_var('cat');// 说明:获取完整URL$WholePageURL = get_category_link($cat_ID);$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;$args = array(    // 这里以下面的方式添加query_posts参数,具体参数可以参加官方文档    'cat'=> $cat_ID,    'posts_per_page'=>4,    'paged' => $paged);

需要你在设置-阅读里面,把默认的10篇每页改成4篇每页。

或者,在functions.php函数里添加如下内容:

这里需要注意的是,Post_Per_page后面的参数,要和你页面里query_post的值相同才行。

function custom_posts_per_page($query){if( is_category('wordpress-themes')  && $query->is_main_query() ) {$query->set('posts_per_page', 4);}} www.111cn.netadd_action('pre_get_posts', 'custom_posts_per_page');

谷歌公布 2019 年度搜索热词榜单

最热门搜索词

  1.Disney Plus

  2.Cameron Boyce

  3.Nipsey Hussle

  4.Hurricane Dorian

  5.Antonio Brown

  6.Luke Perry

  7.Avengers Endgame

  8.Game of Thrones

  9.iPhone 11

  10.Jussie Smollett

  新闻搜索

  1.Hurricane Dorian

  2.Notre Dame Cathedral

  3.Womens World Cup

  4.Area 51 raid

  5.Copa America

  6.El Paso shooting

  7.Sri Lanka

  8.Government shutdown

  9.Equifax data breach settlement

  10.California earthquake

  人物搜索

  1.Antonio Brown

  2.Jussie Smollett

  3.James Charles

  4.Kevin Hart

  5.R。 Kelly

  6.21 Savage

  7.Lori Loughlin

  8.Jordyn Woods

  9.Bryce Harper

  10.Robert Kraft

  逝者搜索

  1.Cameron Boyce

  2.Nipsey Hussle

  3.Luke Perry

  4.Jeffrey Epstein

  5.Tyler Skaggs

  6.Beth Chapman

  7.John Witherspoon

  8.John Singleton

  9.Eddie Money

  10.Elijah Cummings

  演员搜索

  1.Jussie Smollett

  2.Kevin Hart

  3.Lori Loughlin

  4.Felicity Huffman

  5.Keanu Reeves

  6.Rami Malek

  7.Joaquin Phoenix

  8.Kate Beckinsale

  9.Halle Bailey

  10.Maisie Williams

  电影搜索

  1.Avengers Endgame

  2.Captain Marvel

  3.Joker

  4.Toy Story 4

  5.Lion King

  6.It Chapter Two

  7.Frozen 2

  8.Once Upon a Time In Hollywood

  9.Midsommar

  10.Scary Stories to Tell in the Dark

  电视剧搜索

  1.Game of Thrones

  2.Stranger Things

  3.When They See Us

  4.Chernobyl

  5.The Mandalorian

  6.The Umbrella Academy

  7.Euphoria

  8.Dead to Me

  9.Surviving R。 Kelly

  10.The Boys

  歌曲搜索

  1.Old Town Road

  2.7 Rings

  3.Shallow

  4.Sunflower

  5.Truth Hurts

  6.Lose You To Love Me

  7.Sicko Mode

  8.thank u, next

  9.Act Up

  10.Bury a Friend

  更详细的排行榜,可以访问 google.com/2019 来了解更多。

Changzhou Sandx Plastics Co., Ltd.

Business TypeManufacturer
Main MarketsNorth America South America Southeast Asia Africa Western Eu
Main ProductsPlastic pail,plastic bucket,straight side pail,golf ball pail,square pail
EntrepreneurMr. Xiang
Employees11 – 50 People
RegionChina
CategoryAgriculture – Agricultural & Gardening Tools
Link ToolChina Agriculture – China Agricultural & Gardening Tools
TagsPail Plastic – Plastic Pail – Plastic Pails

Company Introduction

Changzhou Sandx Plastics Co., Ltd. specializes in the manufacture and marketing of rigid plastic pails in China, and serves a variety of markets from consumer food to construction and auto sales promotion products to golf ball package. We brought high-quality plastic pails to market in 2005. Since then, we have applied our expertise to improving the design and manufacture of rigid plastic pails for a variety of industrial and consumer applications, by adding user-friendly features and incorporating lean manufacturing practices. Today we are the well-known manufacturer in the field in China, and our high quality pails are now also available in the USA, Canada, Japan, Australia, and India.SANDX's key strengths are innovation in packaging design and rapid new product development for consumers (using sophisticated prototyping systems). With high quality products, better price, world-class graphics and excellent customer service, we are also committed to the concept of "lean production", focusing on eliminating waste, reducing variability in manufacturing, and continuously improving our production efficiency. Our commitment is to challenge the current status, develop innovative new products and optimize manufacturing efficiency. Therefore, we can serve our customers better in a highly competitive marketplace.Our state-of-the-art graphics ensure customers get great brand presence on the store shelf. We used thermal printing, and this can help customers print complicated logos and pictures on the pail.We are also in the vanguard of reducing the environmental impact of plastic pails, through developing innovative designs that reducing weight without compromising quality or strength. Our pails are designed to be recyclable and reusable when empty (we designed a special lid-opener for it).Products/services: Round, square and straight side pail, plastic mould, and customized pailAvailability:Food service, construction, dairy, fishing, medical waste, petroleum, and sales promotionMarkets:China, Japan, India, the USA, Canada, Mexico, Australia, and Europe

Contact Information

Contact PersonMr. John X
Telephone86-519-85138026
Fax Number86-519-85158887
Websitehttp://www.sandxplastics.com.cn
Post Code213022
Address217-4153#, North Jinling Road, Xinbei District, Changzhou, Jiang
Online MapChangzhou Sandx Plastics Co., Ltd. Map & Directions

Company ReviewsChangzhou Sandx Plastics Co., Ltd.

JM Plastics.Co.,Ltd.

Business TypeManufacturer, Trading Company
Main MarketsSouth America Eastern Europe Western Europe
Main ProductsPE Tarpaulins,PVC Tarpaulins
Entrepreneur
Employees101 – 500 People
RegionSouth Korea
CategoryAgriculture – Agricultural & Gardening Tools
Link ToolSouth Korea Agriculture – South Korea Agricultural & Gardening Tools
TagsOverseas Marketing – Pe Tarpaulins – Worldwide Market

Company Introduction

We have been manufacturing a P.E tarps over 12 years throughout the worldwide market.Through the time, we are able to accumulate a lot of overseas marketing experiences & mamufacturing know-how and they taught us how to meet customers' requirements and get close, therefore if we have any opportunity from you, we will do our utmost to make our mutual and fruitful business relationship.For further info. please kindly pop into our web. www.jmplastics.co.kr

Contact Information

Contact PersonMr. Zoe Moon
Telephone82-53-3417774
Fax Number
Websitehttp://www.jmplastics.co.kr
Post Code39-1
Address1Ga, Sam-deok dong, Jung-gu, Daegu, South Korea
Online MapJM Plastics.Co.,Ltd. Map & Directions

Company ReviewsJM Plastics.Co.,Ltd.

MUNRO INTERNATIONAL

Business TypeManufacturer, Trading Company
Main MarketsEastern Europe Western Europe
Main ProductsBeauty Kits, Barber Scissors, Gardening Tools, Surgical Instruments
EntrepreneurSami Ullah
Employees51 – 100 People
RegionPakistan
CategoryAgriculture – Agricultural & Gardening Tools
Link ToolPakistan Agriculture – Pakistan Agricultural & Gardening Tools
TagsBarber Scissors – Boxing Products – Gardening Tools

Company Introduction

We are manufacturer and exporters for all high quality manicures-Barber scisors, gardening tools and Surgical Instrument-offer very reasonable prices. we also expertise in martial arts and boxing products.

Contact Information

Contact PersonMr. Yousaf Butt
Telephone92-52-3008616449
Fax Number92-52-3511181
Websitehttps://www. .net/corp-639956.html
Post Code51310
AddressArazi Yaqoob, Sialkot, Punjab, Pakistan
Online MapMUNRO INTERNATIONAL Map & Directions

Company ReviewsMUNRO INTERNATIONAL

FABAAIBA LLC, US

Business TypeManufacturer, Trading Company, Buying Office, Agent, Distributor/Wholesaler, Government ministry/Bureau/Commission, Business Ser
Main Markets
Main Productsconstruction,grass maintenance tools,school,hospital equipment,telephony
Entrepreneur
Employees
RegionUnited States
CategoryAgriculture – Agricultural & Gardening Tools
Link ToolUnited States Agriculture – United States Agricultural & Gardening Tools
TagsConstruction – Fabaaiba Llc – School

Company Introduction

FABAAIBA LLC, US is located in united states, we are the construction, grass maintenance tools, school, hospital equipment, telephony supplier.

Contact Information

Contact Person
Telephone1-202-6586569
Fax Number1
Websitehttps://www. .net/corp-639973.html
Post Code20716
Address12801 HELM PL, BOWIE, Maryland, United States
Online MapFABAAIBA LLC, US Map & Directions

Company ReviewsFABAAIBA LLC, US

P.H. TOOLS S.C.

Business TypeBuying Office, Distributor/Wholesaler
Main Markets
Main ProductsMERCEDES ,PARTS,TOOLS,GRIZZLY
Entrepreneur
Employees
RegionPoland
CategoryAgriculture – Agricultural & Gardening Tools
Link ToolPoland Agriculture – Poland Agricultural & Gardening Tools
TagsCompany Introduction – Grizzly – Mercedes

Company Introduction

P.H. TOOLS S.C. is located in poland, we are the mercedes , parts, tools, grizzly wholesaler.

Contact Information

Contact Person
Telephone48-502-238120
Fax Number48
Websitehttps://www. .net/corp-639959.html
Post Code75-640
AddressMASZKOWO 29 A, KOSZALIN, ZACHODNIOPOMORSKIE, Poland
Online MapP.H. TOOLS S.C. Map & Directions

Company ReviewsP.H. TOOLS S.C.

CV SURYA MAKMUR

Business TypeManufacturer, Trading Company
Main MarketsNorth America Eastern Europe Southeast Asia Eastern Asia Wes
Main ProductsShovel,Hoes
Entrepreneur
Employees51 – 100 People
RegionIndonesia
CategoryAgriculture – Agricultural & Gardening Tools
Link ToolIndonesia Agriculture – Indonesia Agricultural & Gardening Tools
TagsAerodynamic Design – Gardening Tools – Hand Tools

Company Introduction

CV SURYA MAKMUR established since 2000 with its business operate as trading import export company specialized in hardware and hand tools. In the mean time we concentrate to expand our business in gardening tools with highly QC to maintain end user for durable usage and working safety equipment.Our product mainly would be ; 1. Shovel with various type and design 2. Hoes with various type and design All these product were produced with professional technicians and high quality reinforced steel with aerodynamic design to make them durable and heavy duty using to compromise with reasonable price.

Contact Information

Contact PersonMr. Andri Tan
Telephone62-31-3991724
Fax Number62-31-3991726
Websitehttps://www. .net/corp-639975.html
Post Code61121
AddressJl. Kig Selatan Kav. E No. 7, Gresik, Propinsi Jawa Timur, Indon
Online MapCV SURYA MAKMUR Map & Directions

Company ReviewsCV SURYA MAKMUR

Pure Mango SA de CV

Business TypeManufacturer
Main MarketsNorth America Eastern Europe Western Europe
Main ProductsMango Puree,Mango Concentrate,Mango Puree Concentrate
Entrepreneur
Employees11 – 50 People
RegionMexico
CategoryAgriculture – Agricultural & Gardening Tools
Link ToolMexico Agriculture – Mexico Agricultural & Gardening Tools
TagsClose Distance – Mango Puree – Tommy Atkins

Company Introduction

We are producers and distributors of high quality mango juice and puree. Our efficient facilities, close distance to the US border and flat operation, allows us to offer competitieve prices. But most importantly our commitment to our customers assure our client high quality and a long term approach to their needs.We are located on the Mexican west coast where harvest season runs from May to September. Our mango puree and juice are made out of the delicious Tommy Atkins mangoes.Please give us the opportunity to prove why we are the best option as a reliable and competitive supplier.

Contact Information

Contact PersonMs. Carolina Simental
Telephone52-695-9530048
Fax Number52-695-9530048
Websitehttp://www.specialtyfruits.com
Post Code82140
AddressGabriel Leyva No. 32 Sur, Escuinapa, Sinaloa, Mexico
Online MapPure Mango SA de CV Map & Directions

Company ReviewsPure Mango SA de CV

CV.SUN DAMEI

Business TypeManufacturer, Agent, Distributor/Wholesaler
Main MarketsNorth America South America Eastern Europe Southeast Asia Af
Main ProductsDrills,Power Dirlls
Entrepreneur
Employees11 – 50 People
RegionVirgin Islands
CategoryAgriculture – Agricultural & Gardening Tools
Link ToolVirgin Islands Agriculture – Virgin Islands Agricultural & Gardening Tools
TagsCompany Profil – Engaged – Equipment Hands

Company Introduction

Company Profil:CV.SUN DAMEI Company is engaged in providing services for Power Drills equipment Company main activities include the distribution and sale of equipment hands. The company was founded on the pioneer companies 2006. some experienced marketing leader.

Contact Information

Contact PersonMr. Paul Hanor
Telephone1-897-2762172
Fax Number
Websitehttps://www. .net/corp-639976.html
Post Code76006
Address102 North Market Street, St. Jhoseph, Virgin Islands, Virgin Isl
Online MapCV.SUN DAMEI Map & Directions

Company ReviewsCV.SUN DAMEI

KONDSON ROBOT CO.LTD

Business TypeManufacturer
Main Markets
Main Productsintelligent robot,robotics cleaner
Entrepreneur
Employees
RegionCanada
CategoryAgriculture – Agricultural & Gardening Tools
Link ToolCanada Agriculture – Canada Agricultural & Gardening Tools
TagsCompany Introduction – Intelligent Robot – Kondson Robot

Company Introduction

KONDSON ROBOT CO.LTD is located in canada.

Contact Information

Contact Person
Telephone1-234-22456788
Fax Number
Websitehttps://www. .net/corp-639961.html
Post Codeh1z25
Address34 longbow, Montreal, Quebec, Canada
Online MapKONDSON ROBOT CO.LTD Map & Directions

Company ReviewsKONDSON ROBOT CO.LTD

INDIVIDUAL

Business TypeManufacturer, Trading Company, Distributor/Wholesaler
Main Markets
Main ProductsShade Net
Entrepreneur
Employees
RegionIndia
CategoryAgriculture – Agricultural & Gardening Tools
Link ToolIndia Agriculture – India Agricultural & Gardening Tools
TagsCompany Introduction

Company Introduction

INDIVIDUAL is located in india, we are the shade net supplier.

Contact Information

Contact Person<10daa href="http://us.my.alibaba.com/userbehavi
Telephone91-996-5599196
Fax Number
Websitehttps://www. .net/corp-639981.html
Post Code625007
AddressK. Pudur, Madurai, Tamil Nadu, India
Online MapINDIVIDUAL Map & Directions

Company ReviewsINDIVIDUAL

Topiary Art Works & Greenhouses, LLC

Business TypeManufacturer, Distributor/Wholesaler
Main MarketsNorth America South America Eastern Europe Southeast Asia We
Main Productssphagnum moss,coffee,tea,gold,silver
Entrepreneur
Employees101 – 500 People
RegionUnited States
CategoryAgriculture – Agricultural & Gardening Tools
Link ToolUnited States Agriculture – United States Agricultural & Gardening Tools
TagsDeveloper – Greenhouses – Industry

Company Introduction

Inventor and developer to the horticultural industry.Most products are copy and patent protected.

Contact Information

Contact PersonMr. Sir or Madam
Telephone1-620-584-2366
Fax Number
Websitehttp://www.topiaryartworks.com
Post Code67026
AddressP.O. Box 574 9926 S 151 W Clearwater, Kansas 67026, Clearwater,
Online MapTopiary Art Works & Greenhouses, LLC Map & Directions

Company ReviewsTopiary Art Works & Greenhouses, LLC

Marjan Konte s.p.

Business TypeManufacturer
Main MarketsEastern Europe
Main Productsbeech,snow shovel,shovel,metal part for handle
Entrepreneur
Employees5 – 10 People
RegionSlovenia
CategoryAgriculture – Agricultural & Gardening Tools
Link ToolSlovenia Agriculture – Slovenia Agricultural & Gardening Tools
TagsBeech Wood – Konte – Snow Shovel

Company Introduction

We are handles production company from Sloveni83ea (Europa), we produce from beech wood.

Contact Information

Contact Person
Telephone386-7-3043000
Fax Number386-7-3043000
Websitehttp://www.konte.si
Post Code8362
AddressLopata 15, Hinje, Slovenia, Slovenia
Online MapMarjan Konte s.p. Map & Directions

Company ReviewsMarjan Konte s.p.

best polymer pipe company

Business TypeManufacturer, Trading Company, Distributor/Wholesaler
Main Markets
Main Productspvc pipe
Entrepreneur
Employees
RegionBangladesh
CategoryAgriculture – Agricultural & Gardening Tools
Link ToolBangladesh Agriculture – Bangladesh Agricultural & Gardening Tools
TagsPolymer Pipe Company

Company Introduction

best polymer pipe company is located in bangladesh, we are the pvc pipe supplier.

Contact Information

Contact PersonMr. nurul islam
Telephone880-9015676-9013989
Fax Number880
Websitehttps://www. .net/corp-639965.html
Post Code1216
Address98, shenpara parvata, dhaka, dhaka, Bangladesh
Online Mapbest polymer pipe company Map & Directions

Company Reviewsbest polymer pipe company

casmic market srl

Business TypeTrading Company
Main Markets
Main Productstools
Entrepreneur
Employees
RegionRomania
CategoryAgriculture – Agricultural & Gardening Tools
Link ToolRomania Agriculture – Romania Agricultural & Gardening Tools
TagsCasmic Market Srl – Srl Casmic Market

Company Introduction

casmic market srl is located in romania.

Contact Information

Contact Person
Telephone40-724-176181
Fax Number
Websitehttps://www. .net/corp-639986.html
Post Code7200
Addressgarnitei 4, bucuresti, bucuresti, Romania
Online Mapcasmic market srl Map & Directions

Company Reviewscasmic market srl

PETNTOOLS HSING CHEN

Business TypeManufacturer
Main Markets
Main ProductsPet Bowl Feeder,Plastic Cages,Metal Cages & Sheet,Pet Grooming Product – Comb,Pet Grooming Product Slicker Brush,Pet Grooming Product Cleaning Tool,Cat Products,Hand/ Impact/ Gear Sockets,Hand Tools Accessories,Ratchet Handles,Bit Sockets,Socket Wrench
Entrepreneur
Employees
RegionTaiwan
CategoryAgriculture – Agricultural & Gardening Tools
Link ToolTaiwan Agriculture – Taiwan Agricultural & Gardening Tools
TagsBowl Feeder – Hsing Chen – Plastic Cages

Company Introduction

PETNTOOLS HSING CHEN is located in taiwan.

Contact Information

Contact Person
Telephone886-4-22468783
Fax Number
Websitehttps://www. .net/corp-639966.html
Post Code406
AddressAnshun E. 6th St., Taichung, Taiwan
Online MapPETNTOOLS HSING CHEN Map & Directions

Company ReviewsPETNTOOLS HSING CHEN

qingdao xinyuyuan industrial products co.ltd

Business TypeManufacturer, Distributor/Wholesaler
Main Markets
Main ProductsWheel Barrow,Hand Trolley,Plaform Hand Truck,Tool Cart,Garden Cart,Tools,Trailers And Accessories,Wheels,Plastic Products
Entrepreneur
Employees
RegionAustralia
CategoryAgriculture – Agricultural & Gardening Tools
Link ToolAustralia Agriculture – Australia Agricultural & Gardening Tools
TagsAccessories – Hand Trolley – Industrial Products

Company Introduction

qingdao xinyuyuan industrial products co.ltd is located in australia, we are the wheel barrow, hand trolley, plaform hand truck, tool cart, garden cart, tools, trailers and accessories, wheels, plastic products wholesaler.

Contact Information

Contact PersonMr. gina yang
Telephone61-0433990799
Fax Number
Websitehttps://www. .net/corp-639987.html
Post Code3166
Address5 / 79 Atherton road, oakleigh, Victoria, Australia
Online Mapqingdao xinyuyuan industrial products co.ltd Map & Directions

Company Reviewsqingdao xinyuyuan industrial products co.ltd

ONE'S METAL INDUSTRIAL CO., LTD.

Business TypeManufacturer
Main MarketsSoutheast Asia
Main Productsflower rack,fence rails
Entrepreneur
Employees5 – 10 People
RegionTaiwan
CategoryAgriculture – Agricultural & Gardening Tools
Link ToolTaiwan Agriculture – Taiwan Agricultural & Gardening Tools
TagsAluminum Alloy – Aluminum Alloy Products – Innovative Products

Company Introduction

ONE'S METAL INDUSTRIAL CO.,LD. Is a specialized manufacturer of aluminum alloy products, and has more than twenty years of manufacturing and construction experience.Currently, the manufacturing plant sits within an area of 5,000 pings(180,000 square feet).It is equipped with fully automatic die-casting machinery, heavy molding machine, smelting furnace for ra1d5ew material of aluminum alloy and various kinds of processing equipment. Finished products are manufactured from the raw material within a single process, and constant research and development are being carried out to create new, innovative products. We uphold honesty and trust as our principles, and in the attitude of our services, as we look forward to the opportunity of serving you!

Contact Information

Contact PersonMr. Kevin weng
Telephone886-05-3416652
Fax Number
Websitehttp://www.sobig.com.tw
Post Code624
AddressNo. 60, Wucuo Vil. , Yizhu Township, Chiayi County 624, Taiwan (
Online MapONE'S METAL INDUSTRIAL CO., LTD. Map & Directions

Company ReviewsONE'S METAL INDUSTRIAL CO., LTD.

TAN SOON MUI FOOD INDUTRIES

Business TypeManufacturer, Trading Company
Main MarketsNorth America Southeast Asia
Main ProductsGrass Jelly/Chin Chow,Chendol,Ice Jelly/Aiee,Soursop Puree,Mango Puree,Durain Puree,Sweetened Atap Seed,Herbal Tea Drink,Sour Plum Drink,Green Tea Drink,Tadploe/"Q' Ball
Entrepreneur
Employees11 – 50 People
RegionSingapore
CategoryAgriculture – Agricultural & Gardening Tools
Link ToolSingapore Agriculture – Singapore Agricultural & Gardening Tools
TagsChin Chow – Mango Puree – Sour Plum

Company Introduction

We had established ourselves in the Desserts and beverages industry for more than 30 years. Back in 1974, Tan Soon Mui Food Industries first opened its doors in Lim Chu Kang in August 1974. Our reputation for producing delicious traditional Asian desserts grew with time. A move to a newer, bigger location in Bukit Batok in 1980 was necessary to meet the growing demand for Tan Soon Mui's quality products. A top sealing machine capable of packing 1600 jelly products per hour was added to the production line.In 1982, owing to our reputation for excellence and top quality products. Another top sealing machine which has the capability to pack 3000 jelly products per hour was added to the production line.By 1988, to further improve our products, packaging and services to our customers, we had invested in research and development with Singapore Institute of Standards and Industrial Research (SISIR) to improve its products' shelf life. This is Tan Soon Mui's commitment to hygiene that led us to investing in a $400,000 pillow vacuum packing machine for its 5 kilogram packs.With increasing demand f1a6aor Tan Soon Mui products and services, the company moved to our present 1500 square meter Woodlands location in 1993.

Contact Information

Contact PersonMs. Jenn Tan
Telephone65-67567626
Fax Number65-67567296
Websitehttp://tsmfood.com
Post Code738433
Address8 WOODLANDS TERRACE3, Singapore
Online MapTAN SOON MUI FOOD INDUTRIES Map & Directions

Company ReviewsTAN SOON MUI FOOD INDUTRIES