close
Skip to content

Pagination numbers block: Make "mid_size" parameter settable  #45855

@krokodok

Description

@krokodok

What problem does this address?

Currently the pagination numbers block offers no way to set the mid_size parameter. Thus always the default value of 2 is used.

$paginate_args = array(
	'base'      => '%_%',
	'format'    => "?$page_key=%#%",
	'current'   => max( 1, $page ),
	'total'     => $total,
	'prev_next' => false,
);

[...]

$content = paginate_links( $paginate_args );

What is your proposed solution?

Please make the parameter settable with the block editor interface.

Metadata

Metadata

Assignees

Labels

[Block] Query PaginationAffects the Query Pagination Block - used for pagination within the Query Loop Block[Status] In ProgressTracking issues with work in progress[Type] EnhancementA suggestion for improvement.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions