Unable to exclude CPT from Homepage bottom loop

Posted in: Newspaper
Post count: 3

Hi,

I have a bit of an issue on my hands.

I have added a custom post type and I am unable to exclude it, from the loop at the bottom of the homepage. I have a total of 3 posts created as my CPT. What I noticed is that only 2 of them are displayed at any given time and they both generate 2*

<div class="td-container tdc-content-wrap">

The CPT is not using the format that I have chosen (for the bottom articles) and it renders the entire content. I have tried filtering the posts by another category, excluding the category of the CPT but with not results.

Any ideas what might cause this issue ?

Thank you!

Post count: 23312

Hello selejanalex,

Please keep in mind that the custom post type does not part from normal posts and it will not be loaded in your Latest Articles at the bottom of your page, sorry! I have made some tests to my side, and Latest Articles do not take the custom post type…it is not showed.
Notice that the theme only check if the single post is loaded and not check after by custom post type, as you can see here -> https://www.screencast.com/t/UOymirm2S3lQ
If is not what you mean, please provide more details so I will be able to provide a more accurate response.

Thanks for the message!

Post count: 3

Buna din nou Catalin. Intradevar asa e.

Asta inseamna ca problema mea are o alta cauza.
Dupa cum poti vedea din link-ul urmator https://ibb.co/bDcCWF am o serie de elemente “td-main-content-wrap” generate pentru ficare CPT in parte.

Aici poti gasi un exemplu live unde persista problema.
http://cabana84figa.ro/

P.S. Nu stiu exact care e policy-ul in legatura limbii, dar putem continua discutia in Engleza.

Post count: 3

After some further analysis I am getting this bad boy:

“wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_page_generator_mob is not set.
/home/techsa10/public_html/dev/wp-content/themes/Newspaper/includes/wp_booster/td_api.php

wp booster error:
Missing parameter: ‘file’
/home/techsa10/public_html/dev/wp-content/themes/Newspaper/includes/wp_booster/td_autoload_classes.php
Fatal error: Uncaught Error: Class ‘td_page_generator_mob’ not found in /home/techsa10/public_html/dev/wp-content/themes/Newspaper/mobile/page-pagebuilder-latest.php:71 Stack trace: #0 /home/techsa10/public_html/dev/wp-includes/template-loader.php(74): include() #1 /home/techsa10/public_html/dev/wp-blog-header.php(19): require_once(‘/home/techsa10/…’) #2 /home/techsa10/public_html/dev/index.php(17): require(‘/home/techsa10/…’) #3 {main} thrown in /home/techsa10/public_html/dev/wp-content/themes/Newspaper/mobile/page-pagebuilder-latest.php on line 71”

Even with this error I cannot really track the issue, really hoping that you can help me out with this.

Best,
Alex

Post count: 23312

Hello selejanalex,

Please disable all plugins except visual composer, clear cache and reset CDN files if you use it. Please also check any custom code you might have added to the theme panel or the theme files. If you use a child theme, please switch to the main theme to make sure it does not affect the proper functionality of the theme.
If this does not fix it, please try to reinstall the theme via FTP using this guide: https://forum.tagdiv.com/install-via-ftp/

Hope this helps and let us know how it goes!

Thank you!

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.