Blog - Number of posts

Multi tool use
I have a blog where it is supposed to show up two grid columns and six posts but it only shows five,.In addition I have a button to load more posts so when i click it it shows five more (it should be six too), so there are enough posts to load six. It uses a wordpress plugin named fusin-core.
There are two things that I found:
First I tried to change this on back-end page with this:
[blog number_posts="6" offset="" cat_slug="" exclude_cats="" show_title="yes" title_link="yes" thumbnail="yes" excerpt="yes" excerpt_length="35" meta_all="no" meta_author="no" meta_categories="yes" meta_comments="no" meta_date="yes" meta_link="yes" meta_tags="no" paging="yes" scrolling="pagination" strip_html="yes" blog_grid_columns="2" blog_grid_column_spacing="40" layout="large" class="" id=""][/blog]
I tried to put more but it just ignore it
Then looking for php's files I found a class named class-blog.php inside of plugins (fusion-core) and there are some arguments that I tried to change but without result.
$defaults = FusionCore_Plugin::set_shortcode_defaults(
array(
'class' => '',
'id' => '',
'blog_grid_column_spacing' => '40',
'blog_grid_columns' => '3',
'cat_slug' => '',
'excerpt' => 'yes',
'excerpt_length' => '',
'exclude_cats' => '',
'layout' => 'large',
'meta_all' => 'yes',
'meta_author' => 'yes',
'meta_categories' => 'yes',
'meta_comments' => 'yes',
'meta_date' => 'yes',
'meta_link' => 'yes',
'meta_read' => 'yes',
'meta_tags' => 'no',
'number_posts' => '6',
'offset' => '',
'order' => 'DESC',
'orderby' => 'date',
'paging' => 'yes',
'show_title' => 'yes',
'scrolling' => 'infinite',
'strip_html' => 'yes',
'thumbnail' => 'yes',
'title_link' => 'yes',
'posts_per_page' => '6',
'taxonomy' => 'category',
'excerpt_words' => '50', //deprecated
'title' => '', // deprecated
), $args
);
It should show up two grid columns with six post and then load 6 more. I will apreciatte if you give me a hand.
There is how it sees:
https://netcloudengineering.com/blog-redes-telecomunicaciones-ciberseguridad/?lang=en
php wordpress plugins
add a comment |
I have a blog where it is supposed to show up two grid columns and six posts but it only shows five,.In addition I have a button to load more posts so when i click it it shows five more (it should be six too), so there are enough posts to load six. It uses a wordpress plugin named fusin-core.
There are two things that I found:
First I tried to change this on back-end page with this:
[blog number_posts="6" offset="" cat_slug="" exclude_cats="" show_title="yes" title_link="yes" thumbnail="yes" excerpt="yes" excerpt_length="35" meta_all="no" meta_author="no" meta_categories="yes" meta_comments="no" meta_date="yes" meta_link="yes" meta_tags="no" paging="yes" scrolling="pagination" strip_html="yes" blog_grid_columns="2" blog_grid_column_spacing="40" layout="large" class="" id=""][/blog]
I tried to put more but it just ignore it
Then looking for php's files I found a class named class-blog.php inside of plugins (fusion-core) and there are some arguments that I tried to change but without result.
$defaults = FusionCore_Plugin::set_shortcode_defaults(
array(
'class' => '',
'id' => '',
'blog_grid_column_spacing' => '40',
'blog_grid_columns' => '3',
'cat_slug' => '',
'excerpt' => 'yes',
'excerpt_length' => '',
'exclude_cats' => '',
'layout' => 'large',
'meta_all' => 'yes',
'meta_author' => 'yes',
'meta_categories' => 'yes',
'meta_comments' => 'yes',
'meta_date' => 'yes',
'meta_link' => 'yes',
'meta_read' => 'yes',
'meta_tags' => 'no',
'number_posts' => '6',
'offset' => '',
'order' => 'DESC',
'orderby' => 'date',
'paging' => 'yes',
'show_title' => 'yes',
'scrolling' => 'infinite',
'strip_html' => 'yes',
'thumbnail' => 'yes',
'title_link' => 'yes',
'posts_per_page' => '6',
'taxonomy' => 'category',
'excerpt_words' => '50', //deprecated
'title' => '', // deprecated
), $args
);
It should show up two grid columns with six post and then load 6 more. I will apreciatte if you give me a hand.
There is how it sees:
https://netcloudengineering.com/blog-redes-telecomunicaciones-ciberseguridad/?lang=en
php wordpress plugins
add a comment |
I have a blog where it is supposed to show up two grid columns and six posts but it only shows five,.In addition I have a button to load more posts so when i click it it shows five more (it should be six too), so there are enough posts to load six. It uses a wordpress plugin named fusin-core.
There are two things that I found:
First I tried to change this on back-end page with this:
[blog number_posts="6" offset="" cat_slug="" exclude_cats="" show_title="yes" title_link="yes" thumbnail="yes" excerpt="yes" excerpt_length="35" meta_all="no" meta_author="no" meta_categories="yes" meta_comments="no" meta_date="yes" meta_link="yes" meta_tags="no" paging="yes" scrolling="pagination" strip_html="yes" blog_grid_columns="2" blog_grid_column_spacing="40" layout="large" class="" id=""][/blog]
I tried to put more but it just ignore it
Then looking for php's files I found a class named class-blog.php inside of plugins (fusion-core) and there are some arguments that I tried to change but without result.
$defaults = FusionCore_Plugin::set_shortcode_defaults(
array(
'class' => '',
'id' => '',
'blog_grid_column_spacing' => '40',
'blog_grid_columns' => '3',
'cat_slug' => '',
'excerpt' => 'yes',
'excerpt_length' => '',
'exclude_cats' => '',
'layout' => 'large',
'meta_all' => 'yes',
'meta_author' => 'yes',
'meta_categories' => 'yes',
'meta_comments' => 'yes',
'meta_date' => 'yes',
'meta_link' => 'yes',
'meta_read' => 'yes',
'meta_tags' => 'no',
'number_posts' => '6',
'offset' => '',
'order' => 'DESC',
'orderby' => 'date',
'paging' => 'yes',
'show_title' => 'yes',
'scrolling' => 'infinite',
'strip_html' => 'yes',
'thumbnail' => 'yes',
'title_link' => 'yes',
'posts_per_page' => '6',
'taxonomy' => 'category',
'excerpt_words' => '50', //deprecated
'title' => '', // deprecated
), $args
);
It should show up two grid columns with six post and then load 6 more. I will apreciatte if you give me a hand.
There is how it sees:
https://netcloudengineering.com/blog-redes-telecomunicaciones-ciberseguridad/?lang=en
php wordpress plugins
I have a blog where it is supposed to show up two grid columns and six posts but it only shows five,.In addition I have a button to load more posts so when i click it it shows five more (it should be six too), so there are enough posts to load six. It uses a wordpress plugin named fusin-core.
There are two things that I found:
First I tried to change this on back-end page with this:
[blog number_posts="6" offset="" cat_slug="" exclude_cats="" show_title="yes" title_link="yes" thumbnail="yes" excerpt="yes" excerpt_length="35" meta_all="no" meta_author="no" meta_categories="yes" meta_comments="no" meta_date="yes" meta_link="yes" meta_tags="no" paging="yes" scrolling="pagination" strip_html="yes" blog_grid_columns="2" blog_grid_column_spacing="40" layout="large" class="" id=""][/blog]
I tried to put more but it just ignore it
Then looking for php's files I found a class named class-blog.php inside of plugins (fusion-core) and there are some arguments that I tried to change but without result.
$defaults = FusionCore_Plugin::set_shortcode_defaults(
array(
'class' => '',
'id' => '',
'blog_grid_column_spacing' => '40',
'blog_grid_columns' => '3',
'cat_slug' => '',
'excerpt' => 'yes',
'excerpt_length' => '',
'exclude_cats' => '',
'layout' => 'large',
'meta_all' => 'yes',
'meta_author' => 'yes',
'meta_categories' => 'yes',
'meta_comments' => 'yes',
'meta_date' => 'yes',
'meta_link' => 'yes',
'meta_read' => 'yes',
'meta_tags' => 'no',
'number_posts' => '6',
'offset' => '',
'order' => 'DESC',
'orderby' => 'date',
'paging' => 'yes',
'show_title' => 'yes',
'scrolling' => 'infinite',
'strip_html' => 'yes',
'thumbnail' => 'yes',
'title_link' => 'yes',
'posts_per_page' => '6',
'taxonomy' => 'category',
'excerpt_words' => '50', //deprecated
'title' => '', // deprecated
), $args
);
It should show up two grid columns with six post and then load 6 more. I will apreciatte if you give me a hand.
There is how it sees:
https://netcloudengineering.com/blog-redes-telecomunicaciones-ciberseguridad/?lang=en
php wordpress plugins
php wordpress plugins
asked Dec 31 '18 at 12:07
ToniTJKToniTJK
7317
7317
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
use this function. I hope its working for you.
function wpdocs_five_posts_on_homepage( $query ) {
if ( $query->is_home() && $query->is_main_query() ) {
$query->set( 'posts_per_page', 6 );
} } add_action( 'pre_get_posts', 'wpdocs_five_posts_on_homepage' );
First of all thanks for your answer. It does not work for me, it seems like I am touching a wrong file because whatever change I do do not change nothing @HarshKhare
– ToniTJK
Jan 2 at 9:03
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53987330%2fblog-number-of-posts%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
use this function. I hope its working for you.
function wpdocs_five_posts_on_homepage( $query ) {
if ( $query->is_home() && $query->is_main_query() ) {
$query->set( 'posts_per_page', 6 );
} } add_action( 'pre_get_posts', 'wpdocs_five_posts_on_homepage' );
First of all thanks for your answer. It does not work for me, it seems like I am touching a wrong file because whatever change I do do not change nothing @HarshKhare
– ToniTJK
Jan 2 at 9:03
add a comment |
use this function. I hope its working for you.
function wpdocs_five_posts_on_homepage( $query ) {
if ( $query->is_home() && $query->is_main_query() ) {
$query->set( 'posts_per_page', 6 );
} } add_action( 'pre_get_posts', 'wpdocs_five_posts_on_homepage' );
First of all thanks for your answer. It does not work for me, it seems like I am touching a wrong file because whatever change I do do not change nothing @HarshKhare
– ToniTJK
Jan 2 at 9:03
add a comment |
use this function. I hope its working for you.
function wpdocs_five_posts_on_homepage( $query ) {
if ( $query->is_home() && $query->is_main_query() ) {
$query->set( 'posts_per_page', 6 );
} } add_action( 'pre_get_posts', 'wpdocs_five_posts_on_homepage' );
use this function. I hope its working for you.
function wpdocs_five_posts_on_homepage( $query ) {
if ( $query->is_home() && $query->is_main_query() ) {
$query->set( 'posts_per_page', 6 );
} } add_action( 'pre_get_posts', 'wpdocs_five_posts_on_homepage' );
answered Dec 31 '18 at 13:02


Harsh KhareHarsh Khare
4329
4329
First of all thanks for your answer. It does not work for me, it seems like I am touching a wrong file because whatever change I do do not change nothing @HarshKhare
– ToniTJK
Jan 2 at 9:03
add a comment |
First of all thanks for your answer. It does not work for me, it seems like I am touching a wrong file because whatever change I do do not change nothing @HarshKhare
– ToniTJK
Jan 2 at 9:03
First of all thanks for your answer. It does not work for me, it seems like I am touching a wrong file because whatever change I do do not change nothing @HarshKhare
– ToniTJK
Jan 2 at 9:03
First of all thanks for your answer. It does not work for me, it seems like I am touching a wrong file because whatever change I do do not change nothing @HarshKhare
– ToniTJK
Jan 2 at 9:03
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53987330%2fblog-number-of-posts%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
nyUc5nw5GZ2f GhpA JPwwR,ud2AEB9BNLr6nklpe3 7j7tqULYt YZ,tLspDaCzjtHVqQ 2 lkUdAkt,65xZ,8f has iJxcwcr