Sticky Posts with BeTheme & Visual Composer

Posted in: Newspaper
Post count: 39

Hi,

Is there any way to put Sticky Posts at the top of the page and not just at the top of Content?
my website: Twoje Zagłębie

thx

Post count: 22421

Hello,

I’m not sure how you want to use sticky posts. Our theme was built to ignore sticky posts as they create problems with our grids. Please provide more details to your request.

Thank you!

Post count: 39

Sticky Post (post always has the first position with all posts on website) is set here
sticky post

My site has posts (purple color): 10 in the visual composer, another is content with WP.

if I turn sticky post, it is set as the first content post with WP
I would like to be the first in VC
position sticky post

Post count: 22421

Hello,

Our theme modules and blocks will ignore sticky posts. There is no way you can show sticky posts in blocks or grids. They will however show on loops meaning the category pages or blog roll page.

Thank you!

Post count: 17

Is there a particular reason why you don’t resolve this issue? And I call it an issue as it breaks a core WordPress function.

We use a blocks on the home page, including a Big Grid at the top. We’d love to be able to stick a post to this grid and in theory, it doesn’t seem like it should be that much trouble.

Post count: 22421

Hello,

Well of course there is a reason :). Nothing is arbitrary. The sticky posts were removed because they created layout issues that could not be overcome with our theme modules and blocks. We are aware that it limits a wordpress functionality but our theme also brings much more functionality to the table.

Sorry for the inconvenience.

Post count: 17

No worries, I was able to resolve the issue quite easily in the code myself, at least for the Big Grid 3 which we use.

I just added the following to the foreach loop in td_block_big_grid_3.php

if($post_count >= (int)self::POST_LIMIT) {
break;
}

Not sure why something similar couldn’t be added across the board?

Post count: 39

all great, but I do not know where i paste your code to td_block_5.php
there already is more complicated for me

thanks 🙂

Post count: 17

Here’s a link for my td_block_big_grid_3.php: https://www.dropbox.com/s/m1v55w18w9il6cy/td_block_big_grid_3.php?dl=0

Perhaps that will help you?

Post count: 39

yes, I use your code to td_block_6. It’s result:

Fatal error: Class ‘td_block_6’ not found in /twojezaglebie/wp-content/themes/Newspaper/includes/wp_booster/td_global_blocks.php on line 35


if (!empty($posts)) {
foreach ($posts as $post) {

if($post_count >= (int)self::POST_LIMIT) {
break;
}

$td_module_3 = new td_module_3($post);

switch ($td_column_number) {

case '1': //one column layout
$buffy .= $td_block_layout->open12(); //added in 010 theme - span 12 doesn't use rows
$buffy .= $td_module_3->render($post);
$buffy .= $td_block_layout->close12();
break;

case '2': //two column layout
$buffy .= $td_block_layout->open_row();

$buffy .= $td_block_layout->open6();
$buffy .= $td_module_3->render($post);
$buffy .= $td_block_layout->close6();

if ($td_current_column == 2) {
$buffy .= $td_block_layout->close_row();
}

Viewing 10 posts - 1 through 10 (of 10 total)
You must be logged in to reply to this topic.