- NewsmagPage templates
Hi,
1. You need to set a excerpt on title ( Excerpts introduction -> https://forum.tagdiv.com/excerpts-introduction/ ).
2. Please check our documentation for Filter Tab -> https://forum.tagdiv.com/block-settings-guide/
3. Unfortunately our theme do not have this option of photo grid.
4. Please use this custom css
.td-footer-wrapper div .td_block_template_4 .td-block-title > * {
background-color: #ff4136;
color: #fff;
}
.td-footer-wrapper div .td_block_template_4 .td-block-title > *:before {
border-color: #ff4136 transparent transparent transparent!important;
}
set it in newspaper>Theme panel>Custom code>Custom css
https://www.screencast.com/t/PqwsUKDkv
5. Please check the settings from Settings>Discussion -> https://www.screencast.com/t/zuLKrsGAs3g
Unfortunately for removing the website and links is no option in tagDic Cloud Library , you can use some custom css to hide some of them, if those are not important.
6. Unfortunately our theme do not have this type of menu, maybe you can use a plugin to achieve that
-> https://wordpress.org/plugins/tags/hamburger/
7. Single post templeats can be apply only on posts, pleasee check our documentation for post templates-> https://forum.tagdiv.com/post-templates-2/
8. You can set in page with tagDiv Composer a post loop and set the pagination to infinite load -> https://forum.tagdiv.com/post-templates-2/
9. you can set a gif as background, but the gif need to be set ass full size https://www.screencast.com/t/1jxLwVne2Vp
10. Please notice that the speed of your website depends on how well your site is optimized.
There are many optimization guides provided by our users here in the forum, some made by us, you could check some of them
– https://forum.tagdiv.com/cache-plugin-install-and-configure/
– https://forum.tagdiv.com/how-to-make-the-site-faster/
– https://www.infophilic.com/get-almost-100-pagespeed-newspaper-theme/
– https://forum.tagdiv.com/topic/score-100100-pagespeed-with-newspaper-wordpress-theme/
– https://forum.tagdiv.com/topic/newspaper-theme-speedify-your-website/
– https://forum.tagdiv.com/topic/tutorial-chriss-custom-optimizations-for-functions-php-etc/
– https://forum.tagdiv.com/cloudflare-cdn/
– https://forum.tagdiv.com/topic/theme-causing-high-cpu-usage-2/
– https://forum.tagdiv.com/topic/sql-querys-high-cpu/
– https://forum.tagdiv.com/topic/newspaper-theme-slow-to-respond/
– https://premium.wpmudev.org/blog/optimizing-your-wordpress-database-a-complete-guide/
– https://underconstructionpage.com/optimize-wordpress-database/
– https://crunchify.com/better-optimize-wordpress-database-all-in-one-guide/
Hope this will help you.
Thank you.
Hello,
I used to modify default loops for single post to add some custom php code at top and bottom of my posts.
Essentially to display Amazon Boxes et infos boxes based on ACF.
No big deal because I just had to create a single-loop-X.php in my child theme.
However, I discovered Cloud Templates and really like the single post template that came with Fast News demo.
Is there any way to achieve what I was doing with default loops but with a template ?
Thhanks
Hi,
That would not be possible at the moment, the loop of posts in the category pages is predefined to be sorted by latest. There is no setting to change this.
I believe there are plans to add sorting methods to the loop cloud elements, so this will be possible in the future within cloud category templates.
For the default category template I am not sure if this will be available.
Thanks
am citit ceva tutoriale pe aici si am adaugat codul asta <?php echo $td_mod_single->related_posts();?> in loop-single-2.php (pentru a adauga inca o reclama) dar sa adaug posturi este vreun cod ? Deoarece daca creez in cloud sunt foarte multe errori si chiar pentru pluginul seo yoast de exemplu aici nu stiu ce sa aleg http://prntscr.com/m4bnnn
I changed themes to accommodate this feature because it is what my readers wanted (plus it only works in default theme which does not support full width on posts and the full width also a requested feature by my readers). I will come back to the theme in future if it supports better integration with ACF plugin custom fields. I tries to create a shortcode using this code in functions.php but the output shows on top of the post (made with td cloud library templates)and outside the td rows.
<?php
add_shortcode( 'custom_name', 'footag_func' );
function footag_func( $atts ) {
$html= '';
$posts = get_field('related_posts', false, false);
$loop = new WP_Query(array('post_type' => 'post', 'posts_per_page' => 3, 'post__in' => $posts, 'post_status' => 'publish', 'orderby' => 'post__in', 'order' => 'ASC' ));
if($loop->have_posts()) {
$html .= '<div class="rel-posts">';
while ($loop->have_posts()) : $loop->the_post();
$html .= '<div class="related-post">';
$html .=''.the_post_thumbnail('td_218x150').'';
$html .= '<h3>'.the_title().'</h3>';
$html .= '</div>';
endwhile;
$html .= '</div>';
} wp_reset_query();
}
return $html;
?>
Dear Support team,
posts loop, does it have filter function for category?
How do we exclude category of loop articles?
If not, how do we customize for excluding certain category?
Dear Support team,
My web has “Posts Loop” in top page.
However, when reloading, “other display view” is shown at moment.
(Lime M12, Post name, Excerpts, and read more botton)
How do I fix it?
Hi,
Sorry for the delayed response, seems the topic was unintentionally overlooked for some reason.
1. There is currently an issue when selecting the latest articles template for pages.
While the latest articles template is applied after being selected and the page published/updated, the settings for it are not displaying.
We are working on a fix for this issue however, it will be provided as soon as possible.
2. Between actual modules displaying posts is not possible by a theme setting. With cloud templates you can place ad boxes around the post loop (above it, next to it, below it)
– https://forum.tagdiv.com/tagdiv-cloud-library-plugin/
– http://prntscr.com/lxs30w
Here you can preview and also edit the cloud category templates
– https://affiliate.tagdiv.com/#/load/Category
Each can be imported (and modified if needed), there is also a blank template in which you can design your own templates.
3. The best way to place and ad below the pagination is to use the post loop elements instead of the latest articles section for the template. It is basically the same thing, but the loop can be positioned wherever in the page content, with other content around it
– https://www.screencast.com/t/5tM3cT3Phg99
4. There was a problem with the theme lazyload in the previous version, it is now fixed however. If you have not already, please update the theme, then clear all caching including browser cache. The problem should be fixed.
5. Usually this kind of issue is caused by caching plugin. I have seen before plugins like total cache creating the problem. We tested the mobile theme with WP Super Cache and it works as intended. But some other caching plugins or settings from them can cause the mobile theme plugin to load for desktop users or various other issues.
Please let us know if you have more questions.
Thanks
Hi,
I understand what you mean. Blocks don’t have numbered pagination, only ajax pagination. Blocks and grids can display custom post types, but the posts cannot be filtered in any way, only sorted.
The loop elements have numbered pagination, but cannot be filtered. There would be no way around this. Maybe consider using blocks to display the custom post types.
The theme is somewhat limited when it comes to CPT, most of the theme and composer options are designed to work with default posts and categories. So there aren’t many settings for CPT. Sorry for the inconvenience.
Thanks
Hi
I made a custom post type with the CPT UI plugin and set it for my CPT to have categories and tags.
However I cannot figure out how to display them on the post list of latest posts on Home, category and tags.
I have been through all menu on the Theme panel but nothing found.
Then, I first thought I could make my own pages with tagDiv Composer for the home page and all category and tags.
Although the module elements have the Filter tab to include or exclude Categories and CPT, it does not have the Normal Pagination, only types of Ajax paginations are available.
On the other hand, the Posts Loop element does not have Filter tab.
Now I would alter the code in the child theme files of Newspaper but i don’t know what to do. I am currently figuring out how the code works.
Hi,
Depends on what elements are used in the category template. Using category grids and loop elements will automatically display posts from the category that uses the template
– https://www.screencast.com/t/xZ5j9UOE
– https://www.screencast.com/t/h73BXKM4R
So a template containing such elements can be applied for multiple categories. This is how the cloud category template examples are made
– https://affiliate.tagdiv.com/#/load/Category
But using other elements such as normal blocks and grids with filtering for example, these will always display the same posts according to that filtering, no matter the category page in which they appear. In this case the template would not be suited for multiple categories.
Thanks
Hi,
I want to add on the posts loop block under the title and next to the image the source or the via of the article.
Can you please guide me through?
Regards,
Eric
Thanks. I can see an option for infinite loading + load more pagination from Loop Settings?
My template is set to ‘pagebuilder + latest articles + pagination’ with M6. The loop settings only have filters for the categories.
I just need 9 posts on the homepage then infinite scroll on page 2 rather than another grid of 9 and 83 more pages.
Thanks in advance
Thanks
Trying to do the same in Posts Loop 2.
Any help?
Because the element displays a post loop – https://codex.wordpress.org/The_Loop
– https://www.wpbeginner.com/glossary/loop/
Loops have no filtering options, they can be placed in pages, cloud category templates, cloud tag templates etc.
For example while creating a category template, place a loop element in it. The template can be applied to multiple categories, the loop will be filtered automatically to display posts only from the respective category.
This is useful to have, blocks for example will always display the same posts regardless of where they are places, according to the filtering you set, but the loop will display posts according to where it s placed.
Hello,
I have a slightly custom Loop-Single.php file I’m using for my blog posts. I need to modify it slightly for one blog post, and planned on using the Cloud Templates, but I can’t seem to find a way to import my layout into the Cloud Templates. Is this possible, or would I need to attempt to rebuild the layout within the Cloud Template?
If I’m unable to import my own, could you let me know which Single Post layout in the Cloud Library is for the default post type, or the closest to it?
Regards,
Buddy
Hi Lucian.
I am trying to sort posts in category “camera-eye” (nr. 306) in the mega menu according to a custom field called “concertdatum”. However I keep failing miserably.
For this to work I have added the sorting option concertdatum like so:
/includes/wp_booster/td_data_source.php
case 'concertdatum':
$wp_query_args['meta_key'] = 'datum';
$wp_query_args['meta_type'] = 'DATETIME';
$wp_query_args['orderby'] = 'meta_value';
$wp_query_args['order'] = 'DESC';
break;
Then I have changed the following to the mega menu file:
/includes/shortcodes/td_block_mega_menu.php
class td_block_mega_menu extends td_block {
function render($atts, $content = null){
if (is_category( '306' )){
$atts['sort'] = 'concertdatum';
parent::render($atts);}
$buffy_categories = '';
extract(shortcode_atts(
array(
'limit' => 5,
'sort' => '',
'category_id' => '',
'category_ids' => '',
'custom_title' => '',
'custom_url' => '',
'show_child_cat' => '', //the child category number
'sub_cat_ajax' => '' //empty we use ajax
), $atts));
if (!empty($show_child_cat) and
!empty($category_id)) {
// check for subcats existence
$td_subcats = get_categories(array(
'child_of' => $category_id,
'number' => 1
));
if (!empty($td_subcats)) {
$atts['limit'] = 4; //alter the loop because we don't have space now with the categories
}
}
parent::render($atts); // sets the live atts, $this->atts, $this->block_uid, $this->td_query (it runs the query)
//get subcategories, it returns false if there are no categories
$get_block_sub_cats = $this->get_mega_menu_subcategories($atts);
$additional_classes = array();
But sadly nothing happens, can you help me out what I’m doing wrong please ?
-
This reply was modified 7 years by
NickDeBaerdemaeker.
-
This reply was modified 7 years by
NickDeBaerdemaeker.
I have updated to the newest version of newspaper, made sure all of the plugins are up to date, cleared my cache and still see this where one of my blocks should be:
[tdb_loop modules_on_row=”eyJhbGwiOiI1MCUiLCJwaG9uZSI6IjEwMCUifQ==” modules_gap=”eyJsYW5kc2NhcGUiOiI0MCIsInBvcnRyYWl0IjoiMjgifQ==” modules_category=”image” show_excerpt=”none” show_btn=”none” ajax_pagination=”numbered” custom_title=”Latest posts” limit=”10″]
I am using the News Magazine set-up and have not made any changes to the types of blocks or their tech specs
In order to display ads inside the post loop (I believe that is what you wanted) you will have to modify the loop.php file from the theme
– http://www.screencast.com/t/FoVvUOVY
In that example the code will output the ad inserted in the custom ad 1 ad spot of the theme panel, in category pages.
Or like in this topic where the code will output the ad from custom ad 1 only in the homepage, after 4 posts, and once per page
– https://forum.tagdiv.com/topic/problems-with-tagdiv-composer/
Hi,
So you are referring to the ads that are displayed inside the post loop? By itself the theme cannot do that, there are various code solutions in the forum you could try if you want to do something similar
– https://forum.tagdiv.com/topic/how-to-insert-ads-between-posts-on-the-main-categories-and-in-the-archives/
– https://forum.tagdiv.com/topic/in-feed-adsense/
– https://forum.tagdiv.com/topic/how-to-add-adsense-ad-after-5-10-articles-on-main-page/
– https://forum.tagdiv.com/topic/adsense-infeed/
Thanks
Hi,
I’m using Mobile theme. In that there is an option for loop Ad. I have placed the Ad code in loop Ad section and given the post count as 5. But this loop Ad is displaying only once after 5th post. Is this the expected behavior or it should display after every 5 posts and is there any option to place the loop ad for a non-mobile theme.
Regards,
Sathya
I see the option to limit the number of posts there, but not an option to remove that loop section entirely. Please help.
1. Only the loop elements have numbered pagination
– http://prntscr.com/lnmj27
Using it’s pagination will lead to the next page. The loops cannot be filtered, they will display posts from all the categories sorted by latest.
Blocks only have ajax pagination, no numbered option. Sorry for any inconvenience.
2. All modules will show the category tag, it just has to be enabled in the theme panel
– https://forum.tagdiv.com/category-tag-on-modulesblocks/
Big grid full 8 uses these modules – https://forum.tagdiv.com/theme-blocks-modules/
3. Change the spacing how exactly? Maybe there is a way.
Regarding the composer issue, maybe when trying to use the composer to edit a page for example, the connection was weak or lost with the website, that could explain it.
Hello,
in the Changelog for Version 9.1 (october 15th) there is this item:
new: Post Loop 2 element: Use this new element to display posts loop using other designs
If this is an Loop-Element i can add in the composer, im wondering where it is? I cant find or add it to my page. I want to open up the page with the Post Loop (incl. Pagination) and after that i want to add some focus content.
Best regards
Hello,
We want to add social share button on the blog loop. Say for example here – http://prntscr.com/lk6so8
We can integrate that normally But the problem happen with the ajax load or infinite loop.
When I load new posts using ajax load more – http://prntscr.com/lk6t3d, the social share button stops working.
Here we have used the plugin – “AddToAny Share Buttons”. I have tried few things from the plugin side like-
I have tried adding a trigger on ajax success-
jQuery( ‘body’ ).trigger( ‘post-load’ );
Or initiate the plugin on ajax call-
$(“.a2a_dd”).each(function() {
a2a.init(‘page’);
});
But they never work. The share button is generated but no share link is generated for the new post load by ajax/
Note: We have tried different share plugin & the same thing happen, the share button generates but no share link is generated.
Can you please explain the problem or give us a solution to this?
Thanks