Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
Automatically Paginate Posts
Manage
Activity
Members
Labels
Plan
Issues
11
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WP Plugins
Automatically Paginate Posts
Commits
525498c3
Commit
525498c3
authored
12 years ago
by
Erick Hitter
Browse files
Options
Downloads
Patches
Plain Diff
Ensure metabox appears on all supported posts types. Fixes
#3
.
parent
6eb90f6f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
automatically-paginate-posts.php
+3
-1
3 additions, 1 deletion
automatically-paginate-posts.php
with
3 additions
and
1 deletion
automatically-paginate-posts.php
+
3
−
1
View file @
525498c3
...
...
@@ -59,7 +59,9 @@ class Automatically_Paginate_Posts {
* @return null
*/
function
action_add_meta_boxes
()
{
add_meta_box
(
'autopaging'
,
'Post Autopaging'
,
array
(
$this
,
'meta_box_autopaging'
),
'post'
,
'side'
);
foreach
(
$this
->
post_types
as
$post_type
)
{
add_meta_box
(
'autopaging'
,
'Post Autopaging'
,
array
(
$this
,
'meta_box_autopaging'
),
$post_type
,
'side'
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment