PageForge 1.3: Verifique todas as corridas antes de escrever, atualize as páginas geradas, SpinTax e lotes reumáveis. Veja o que mudou
Array Partition icon
Manutenção ativamente Testado com WP 7.1 #1 in array

Array Partition

Provides a helper function to split an array into N number of evenly distributed partitions (i.e. split a list into N columns)

Instalações ativas10+10+ nível
Downloads · 30d186▲ +190.6% vs prev. 30d
Classificação—0 comentários
Pontuação da saúde66/100Bom
Downloads de todos os tempos4.9KSince Jun 2009
Suporte resolvido—Sem tópicos recentes
RequerWP 5.0PHP 7.0+
Downloads · 7d33▲ +32% week over week
Nosso veredicto

Escolha sólida

Array Partition is a solid plugin choice in 2026, with a few things worth checking first. It runs on 10+ sites and was last updated 4 weeks ago, and scores 66/100 on our health check.

  • Desenvolvido ativamente — última atualização 4 semanas atrás
  • Testado com as últimas WordPress (7.1)
  • Pequena base de usuários (10+ instalações ativas)
  • Muito poucos comentários até agora

Como ele se acumula?

Lado a lado em instalações, atualizações, avaliações e suporte

Downloads diários

81624Aug 25Oct 8Nov 22
Ontem6
Média diária (1y)2
Dia de pico3326 de outubro de 2026
Últimos 12 meses738

Os picos de download geralmente seguem uma nova versão — cada site que atualiza automaticamente é um download.

Rankings

Where Array Partition stands today

WordPress.org Classificações de pesquisa

Posição ao vivo na pesquisa de plugins, top 100
Palavra chavePosiçãoPlugins concorrentesCategoria
array #56 5,126 Best array plugins →
chunk #71 677 Best chunk plugins →
coffee2code #16 65 Best coffee2code plugins →
columns >100 9,918 Best columns plugins →
partition #1 25 Best partition plugins →

Adoção da versão

Compartilhamento de sites ativos por lançamento.

  • 1.2100.0%

About Array Partition

From the official readme · v2.0

Descrição

This plugin provides the PHP function c2c_array_partition() to split an array into any number of sub-arrays, suitable for creating evenly distributed, vertically filled “columns”. Also known as “chunking” or “partitioning”.

Por exemplo:

$topics = array( "ant", "bear", "cat", "dog", "emu", "fox", "gnu", "hog", "ibis", "jackal" );
print_r( c2c_array_partition( $topics, 4 ) );

Yields:

Array
(
    [0] => Array
        (
            [0] => ant
            [1] => bear
            [2] => cat
        )

    [1] => Array
        (
            [0] => dog
            [1] => emu
            [2] => fox
        )

    [2] => Array
        (
            [0] => gnu
            [1] => hog
        )

    [3] => Array
        (
            [0] => ibis
            [1] => jackal
        )
)

Note the array elements are distributed into the requested 4 “columns” as evenly as possible.

The function will fill as many partitions as requested, as long as there are enough elements in the array to do so. Any remaining unfilled partitions will be represented as empty arrays.

In contrast, using PHP’s built-in array_chunk() as such:

print_r( array_chunk( $topics, 4 ) );

Yields:

Array
(
    [0] => Array
        (
            [0] => aardvark
            [1] => bear
            [2] => cat
            [3] => dog
        )
    [1] => Array
        (
            [0] => emu
            [1] => fox
            [2] => gnu
            [3] => hippo
        )
    [2] => Array
        (
            [0] => ibis
            [1] => jackal
        )
)

It can be sent an array of any data types or objects.

Links: Plugin Homepage | Plugin Directory Page | GitHub | Author Homepage

Exemplos

<?php
  $topics = array( "ant", "bear", "cat" );
  print_r( c2c_array_partition( $topics, 5 ) );
?>

=>

Array
(
    [0] => Array
        (
            [0] => ant
        )

    [1] => Array
        (
            [0] => bear
        )

    [2] => Array
        (
            [0] => cat
        )

    [3] => Array
        (
        )

    [4] => Array
        (
        )
)

Also see Description section for another example. Definitely check out the unit test file in the GitHub repository as it contains various examples (see FAQ).

Instalação

  1. Install via the built-in WordPress plugin installer. Or download and unzip array-partition.zip inside the plugins directory for your site (typically wp-content/plugins/)
  2. Activate the plugin through the ‘Plugins’ admin menu in WordPress
  3. Use the c2c_array_partition() function in your WordPress template(s) or code as desired.
  4. Optional. For general PHP usage (outside of WordPress), include the includes/array_partition.php file and call c2c_Array_Partition::partition() instead of c2c_array_partition(). See FAQ for example.

Log de Changes

Housekeeping update: updated plugin's name, split code into plugin loader and library file, limited support to WP 5.0-7.1+ and PHP 7.0-8.5+, fixed some documentation, and updated the copyright date (2026).

2.0 (2026-08-22)

Highlights:

This release is largely a housekeeping release that updates the plugin’s name, splits the code into a plugin loader and library file (making non-WP PHP usage more straightfoward), limits support to WP 5.0-7.1+ and PHP 7.0-8.5+, fixes some documentation, updates and expands unit testing, and updates the copyright date (2026).

Details:

  • Change: Split code into a plugin loader and library file
    • New: Library invocation of function is now c2c_Array_Partition::partition(...)
  • New: Add type hints to function signature
  • Change: Rename to “Array Partition”
  • Change: Only accept positive integer values for number of columns
  • Change: Switch to using short array syntax
  • Change: Use intdiv() instead of floor() for partition size calculation
  • Change: Note compatibility through WP 7.1+
  • Change: Drop compatibility with versions of WP older than 5.0
  • Change: Note compatibility through PHP 8.5+
  • Change: Drop compatibility with versions of PHP older than 7.0
  • Change: Update copyright date (2026)
  • Change: Remove the ‘Text Domain’ plugin header
  • Fix: Minor documentation fixes

1.3.5 (2025-04-16)

  • Change: Use correct value for ‘Text Domain’ in plugin header
  • Change: Note compatibility through WP 6.8+
  • Change: Note compatibility through PHP 8.3+
  • Change: Update copyright date (2025)

1.3.4 (2024-08-02)

  • Change: Note compatibility through WP 6.6+
  • Change: Update copyright date (2024)
  • New: Add .gitignore file
  • Change: Reduce number of ‘Tags’ from readme.txt
  • Change: Remove development and testing-related files from release packaging
  • Unit tests:
    • Hardening: Prevent direct web access to bootstrap.php
    • Allow tests to run against current versions of WordPress
    • New: Add composer.json for PHPUnit Polyfill dependency
    • Change: In bootstrap, store path to plugin directory in a constant

Full changelog is available in CHANGELOG.md.

Registro de change completo em WordPress.org →

Para desenvolvedores

Este é o seu plugin? Mostre os números.

Adicione um crachá ao vivo ao seu site, Documentos ou Readme do GitHub. Ele é atualizado por conta própria - nenhuma conta necessária.

Selo de Instalações Ativas Selo de classificação Distintivo de pontuação de saúde

Best Array Partition alternatives

All array plugins →
Alternativas
Classificação Plugin Instalações ativas Classificação Atualizada Saúde
1 Convert Data Convert Data This plugin produce for you code is array of categories and posts. by edckwt 10+ ★★★★★★★★★★ Sem comentários 2 anos atrás 26
3 Print Array Print Array This plugin allows the use of the function echo_array to print out array data within a… by justo8484 10+ ★★★★★★★★★★ 5 (1) 16 anos atrás 30

FAQ

Array Partition: quick answers

Respostas diretas, extraídas de dados ao vivo WordPress.org.

Fonte: WordPress.org

Is Array Partition free?

Yes. Array Partition is free to download and use from the official WordPress.org plugin directory.

Is Array Partition safe to use in 2026?

Array Partition is a solid plugin choice in 2026, with a few things worth checking first. It runs on 10+ sites and was last updated 4 weeks ago, and scores 66/100 on our health check.

How many websites use Array Partition?

Array Partition is active on 10+ WordPress websites and has been downloaded 4,912 times since it launched in June 2009. It was downloaded 186 times in the last 30 days.

Does Array Partition work with WordPress 7.1?

Yes. The developer has tested Array Partition up to WordPress 7.1.5, the latest release. It requires WordPress 5.0 or newer.

What PHP version does Array Partition need?

Array Partition requires PHP 7.0 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was Array Partition last updated?

The latest version, 2.0, was released on October 26, 2026 (4 weeks ago).

Who makes Array Partition?

Array Partition is developed and maintained by Scott Reilly.

What are the best alternatives to Array Partition?

The most popular alternatives to Array Partition are Convert Data (10+ installs) and Print Array (10+ installs).

Alimentado por PageForge

Um modelo e uma planilha. Uma página real para cada pesquisa.

PageForge Transforma cada linha de um CSV em uma página WordPress com seu próprio título, URL, SEO campos e esquema, construído no layout que você já desenhou. Gratuito em WordPress.org.

  • CSV e XLSX, mais Google Sheets em Profissional e Empresarial
  • Seu próprio título, URL, SEO campos e esquema para cada página
  • Funciona com o editor de blocos, Elementor, Divi e Avada
  • Gratuito em WordPress.org, sem cartão de crédito

↑↓ mover↵ abrir