Search Results for 'posts loop'

Results from the Forum
rafaelpetermann
Participant
#0

Hi, we are having trouble with the website performance operating on a large database.

Our structure is on AWS and we have separate services: for the WordPress a 2 core, 4GB RAM EC2 operating with Nginx and PHP7.4. And for the database, initially a 8 core, 32GB RAM RDS.

We have around ~310.000 posts and we use tagDiv builder on most pages for the loops.

Taking a closer look to how the builder works and call the posts, we manage to remove the “SELECT SQL_CALC_FOUND_ROWS” WordPress does on all queries by adding the “no_found_rows” parameter everywhere there is no needed for pagination.

Since that, we manage to reduce the database to a 4 core 16 GB RAM, but it is still bigger than we expected.

All is fine with the EC2, but the RDS is suffering.

Are there more optimizations we can do?

The website in question is: http://jornaldebeltrao.com.br/

Anamaria
tagDiv Staff

Hello,

For the category template, if you have set a posts loop then will display all posts in this category or you can use Flex Block 1 and set the filter to “Category -Current category” => https://i.imgur.com/7P99qx0.png

Thank you!

be2name
tagDiv Member

Hello,

just in case someone has the same problem, here is the solution to add Custom Post Types into the loop of AMP-Pages. Of course this has to be done after every theme-update.

In /wp-content/plugins/td-composer/mobile/functions.php add the following function:

function add_custom_post_type_to_query( $query ) {
if (is_home() || is_archive()) {
$query->set( 'post_type', array('post', 'your_CPT_name_here') );
}
}
add_action( 'pre_get_posts', 'add_custom_post_type_to_query' );

choiwj1012
Participant
#0

Hello

Flex Block, Block is in use.

If i only show 8 posts on the main page, and load more, the same posts are repeated over and over again.

please check this problem

https://ibb.co/mqTctRm

Calin
tagDiv Staff

Hi,
The ‘Latest articles’ from Home Page is part of the page template , this is displayed when the template “Page builder + latest articles + pagination” is applied on the page.
If you want to edit the posts from the “Latest articles” then you can do it from the bottom of the page, select the Post Loop Settings -> https://i.imgur.com/gjQpdb2.png
I hope this will help you!

Anamaria
tagDiv Staff

Hello,

For the category template, if you have set a posts loop then will display all posts in this category or you can use Flex Block 1 and set the filter to “Category -Current category” => https://i.imgur.com/7P99qx0.png

Thank you!

Anamaria
tagDiv Staff

Hello,

Normally, if Football is a category, then the Posts Loop will display the posts from that category.
For the category template, if you have set a posts loop then will display all posts in this category or you can use Flex Block 1 and set the filter to “Category -Current category” => https://i.imgur.com/7P99qx0.png
Please provide a link to your category.

Thank you!

catalingeangos
Participant
#0

Hi, i would like to keep the right sidebar from blog posts on my desktop version but to remove it from mobile. how do i do that? I’m using classic/gutenberg editors and not tagdiv composer
example here

Anamaria
tagDiv Staff

Hello,

The pagination number has only the elements posts loop and posts loop 2 -> https://i.imgur.com/RXAh0iM.png
The Posts Loops settings are divided into 5 tabs: General, Layout, Style, ADS and CSS. The Posts loop is a special block and doesn’t have filtering options.
Also, one of the options for pagination of the Posts Loop has the option for normal numbered and the flex blocks do not have this option.
The Posts Loop is automatically filtering the posts depending on the cloud template you set (for example on the category page there will be posted posts from that category).
The Flex Block, have the option for pagination to load more button and infinite load -> https://i.imgur.com/NTHv3g6.png
Also, there is no scroll bar, if you have a mouse with the scroll you can use it to scroll in tagDiv Composer.

Thank you!

Anamaria
tagDiv Staff

Hello,

1. Please deactivate the mobile theme plugin, clear all cache and check the results.
Also, please check this topic where I explained each mobile version -> https://forum.tagdiv.com/topic/mobile-version-not-working-properly-2/ and choose what mobile version you want.
2.A solution is to set the offset posts on the blocks => https://www.screencast.com/t/Tsiu65TSaRS -> https://www.screencast.com/t/YbkmVbsBrnk
You can use the Flex Block 1 and you can filter it to display the posts only from a category -> https://i.imgur.com/Nnt3zGX.png and you can design it to look like a posts loops block.

Thank you!

Anamaria
tagDiv Staff

Hello,

For the category template, if you have set a posts loop then will display all posts in this category or you can use Flex Block 1 and set the filter to “Category -Current category” => https://i.imgur.com/7P99qx0.png

Thank you!

Charter Party Disputes
tagDiv Member

On your suggestion, you are saying: “You can use the Flex Block 1 and you can filter it to display the posts only from a category -> https://i.imgur.com/Nnt3zGX.png and you can design it to look like a posts loops block.” I can not see how this solution is filtering out certain categories, to my understanding, the suggested solution is to display a certain selected category or all categories and NOT display all categories besides the selected ones.

Anamaria
tagDiv Staff

Hello,

If you don’t set a featured image on the post, then the theme will load a placeholder image, the placeholder image can be set in Theme Panel -> Block Settings -> Thumbs on Modules/Blocks => https://i.imgur.com/iISRuoX.png
Or you can hide the featured images, from the posts loop block.
The Posts Loops settings are divided into 5 tabs: General, Layout, Style, ADS and CSS. The Posts loop is a special block and doesn’t have filtering options.
Also, one of the options for pagination of the Posts Loop has the option for normal numbered and the flex blocks do not have this option.
The Posts Loop is automatically filtering the posts depending on the cloud template you set (for example on the category page there will be posted posts from that category).
You can use the Flex Block 1 and you can filter it to display the posts only from a category -> https://i.imgur.com/Nnt3zGX.png and you can design it to look like a posts loops block.

Thank you!

#0

Hello, on our webpage https://charterpartydisputes.com/ we’re going to have a new posts category. Unlike most other posts they’re not going to have a featured image for this category. We’re using a Posts Loop element to feature all of the latest posts in chronological order, featuring the latest category though leads to a rather unpleasant result having a grid with empty image placeholders. Is there any way to exclude certain posts or posts categories from the Posts Loop element? If not what would be a workaround or solution for the desired result?

Anamaria
tagDiv Staff

Hello,

Please go to that category template, select the block and in the tab called layout you can hide the excerpt -> https://i.imgur.com/3cLb9wp.png
Also, in the category template, you can use the Flex Block 1 and you can filter it to display the posts only from a category -> https://i.imgur.com/Nnt3zGX.png and you can design it to look like a posts loops block.
The Posts Loops settings are divided into 5 tabs: General, Layout, Style, ADS and CSS. The Posts loop is a special block and doesn’t have filtering options.
Also, one of the options for pagination of the Posts Loop has the option for normal numbered and the flex blocks do not have this option.
The Posts Loop is automatically filtering the posts depending on the cloud template you set (for example on the category page there will be posted posts from that category).

Thank you!

Anamaria
tagDiv Staff

Hello,

The pagination number has only the elements posts loop and posts loop 2 -> https://i.imgur.com/RXAh0iM.png
The Posts Loops settings are divided into 5 tabs: General, Layout, Style, ADS and CSS. The Posts loop is a special block and doesn’t have filtering options.
Also, one of the options for pagination of the Posts Loop has the option for normal numbered and the flex blocks do not have this option.
The Posts Loop is automatically filtering the posts depending on the cloud template you set (for example on the category page there will be posted posts from that category).

Thank you!

Imbalol
Participant
#0

Hello,

I really appreciate the possibility to customize the metadata of the flex blocks as well as Posts Loop elements.

Unfortunately the fact that the customization is only based on CSS causes me problems, ALL the links remain in the source code, and it causes me important problems regarding the structure and the crawl of my website.

The case that bothers me the most:

–> I disable the metadata related to the author on my flex blocks on the home page ( Layout – > Author – > Hide )
The problem is that even if it’s hidden via CSS, all links to the author page remain on the home page in the source code.

This is a big problem for anyone who is taking the structure and internal linking of their website seriously for SEO purposes.

Question: Can anyone from support provide a small snippet to remove the links from the source code regarding the author page when it is supposedly hidden via the builder?

PS: Using a child theme is fine for me

thedonatshop
tagDiv Member

sorry for the double image. I tried to delete one but I saw no delete option.

part 2 of this is a slight variation. but principally the same issue or very similar.

I’d want to be able to link these “learn more ” buttons to link to a custom link added to the post with the aid of a custom field. they would actually go to the author template.

Image from Gyazo

I arrived here as I saw no way to loop contributors
thus I saw even less on how to loop in “featured” contributors as I saw no way to indicate any contributor as a featured one.

so I resorted to making custom posts for each of the featured contributors . so I can loop them in a block but now I need them to link to their respective author page.

Image from Gyazo

I’m not asking you to help me with these other plugins. only to find out once I have custom plugins will I be able to place them in your theme and get some of the custom fields to be populated.

Or if you see another way to achieve what I need within your theme.

thank you.

thedonatshop
Participant
#0

Hello,

I need to use custom posts with custom fields in them.
for this I’m using these plugins
– Custom Post Type UI
– Advanced Custom Fields

we need a page where we offer books. they need to be posts because the list is long and it needs to be searchable. the post loop would show the book cover (featured image) with then a buy button that links to off site places like amazon.

With a custom post for books, in admin we can then add the right link to each place they book it offered.

so the question is:

is there a way to use a flex post loop and add the custom item to it? or is this only possible with PHP ?

MAG
Participant
#0

Hello,
I have a problem with your theme: in the megamenu and in the post loops of the categories I do not correctly display the name of the category. In some posts we read, in others not. I tried to reload the browser page, to create a new category template, to deactivate the plugins and the theme, but the problem remains. Please help me! Thank you

Images
https://drive.google.com/file/d/1PAYEpZOi7dqKnCuOmAsIZokmtvFgr9EQ/view?usp=sharing
https://drive.google.com/file/d/1igkwql-oPOJZauE9TpeuMNDqXEYg_eIT/view?usp=sharing
https://drive.google.com/file/d/1bnMR9X_obWMsP0udEfiSHYaYWEQiAywH/view?usp=sharing

Anamaria
tagDiv Staff

Hello,

The files for posts loops are wp-content/plugins/td-cloud-library/modules/tdb_module_loop.php and tdb_module_loop_2.php
Also, some settings are in wp-content/plugins/td-composer/legacy/common/wp_booster/td_block.php

Thank you!

patrickrodo
tagDiv Member

Hello Anamaria,

That’s alright if there is no built in setting. I have experience programming — I just need to be pointed in the right direction.

Which file contains the logic for the Posts Loop element so that I can modify it to display a message if there are no posts?

Thank you.

Anamaria
tagDiv Staff

Hello,

A solution could be to use the unique article option, follow this guide: https://forum.tagdiv.com/unique-articles/
This option automatically removes duplicate posts from the page.
Also, another solution is to set the offset posts on the blocks => https://www.screencast.com/t/Tsiu65TSaRS -> https://www.screencast.com/t/YbkmVbsBrnk
You can use the Flex Block 1 and you can filter it to display the posts only from a category -> https://i.imgur.com/Nnt3zGX.png and you can design it to look like a posts loops block.
The Posts Loops settings are divided into 5 tabs: General, Layout, Style, ADS and CSS. The Posts loop is a special block and doesn’t have filtering options.
Also, one of the options for pagination of the Posts Loop has the option for normal numbered and the flex blocks do not have this option.
The Posts Loop is automatically filtering the posts depending on the cloud template you set (for example on the category page there will be posted posts from that category).

Thank you!

pwisker
tagDiv Member

OK, just forget all the above:

I just want to be able to filter posts on categories in Posts Loop2, just like I can do in Big Grid Flex.

Thats it! 🙂

pwisker
tagDiv Member

Just to add on the above:

On the homepage, the area “Latest Stock Ideas” is a “Posts Loop2” and the area “Latest Shortlists” is a “Big Grid Flex 1”.

I see I can filter the Big Grid Flex on posts that fall in a specific category. That is what I also want to do with Posts Loop2. Or alternatively construct the same lay out as Posts Loop2, but with a filter, like Big Grid Flex.

Thank you,

Patrick

  • This reply was modified 4 years by pwisker.
  • This reply was modified 4 years by pwisker.
Viewing 25 results - 551 through 575 (of 1,749 total)