- ApiPractical example – How to add a new Block and Module
- Apitd_api_block::delete
- Apitd_api_block::update_key
- Apitd_api_block::update
- Apitd_api_block::add
- ApiAPI – Blocks – Introduction
- Apitd_api_thumb::update_key
- Apitd_api_thumb::update
- Apitd_api_thumb::add
- ApiAPI – Thumbnail – Introduction
- Apitd_api_category_top_posts_style::update_key
- Apitd_api_category_top_posts_style::update
- Apitd_api_category_top_posts_style::add
- ApiAPI – Category top section style – Introduction
- Apitd_api_module::update_key
- Apitd_api_module::update
- Apitd_api_module::add
- ApiAPI – Modules – Introduction
- ApiUsing the Theme API in plugins
- ApiThe Theme API
Hi – I have 6 posts, let’s say a, b, c, d, e and F
F is the latest.
I want to do a special flex block at the top that shows F
Then another flex block that shows e, d, c, b, a
When I add in post G
G auto appears at top
Next FB shows F, E, D, C, B
I swear there’s a way to do this but…
Kind of a hack, but have you tried changing the version noted in the style.css file to 3.3 and leave that line in after minification?
E.g., copy the top section into another text file; run style.css through minification service (e.g., https://www.toptal.com/developers/cssminifier ); then when it’s compressed, paste the original top section with theme version info back on top above the ‘single line’ minified code. Change version number to 3.3. Upload via FTP, over-writing the original file.
Anyway— that’s what I would do.
Also, the move from 3.2 to 5x was not so bad. I tried this recently. Site running latest WordPress and PHP 7.4x. Main issue was redoing home page, but making note of blocks before switch; moving any custom CSS to the WordPress customizer outside theme; noting settings for any widgets and footers (copy paste any custom code into text file before upgrade); note the modules used for sidebar. Actually was not too bad. Of course, I’ve only done one of the 8 sites so far, but actually not too bad. If running PHP 5x kinda screwed on multiple levels, though. 🙂
https://englebrookindependentnews.com/the page where the error was caught (https://englebrookindependentnews.com/wp-admin/post.php?post_id=302&td_action=tdc&tdbTemplateType=page&prev_url=%2F%2Fenglebrookindependentnews.com%2F) and check for any visible issues. PageLayer
Please contact your host for assistance with investigating this issue further.
If your site appears broken and you can’t access your dashboard normally, WordPress now has a special “recovery mode”. This lets you safely login to your dashboard and investigate further.
When seeking help with this issue, you may be asked for some of the following information:
WordPress version 6.4.2
Active theme: Newspaper (version 12.6.3)
Current plugin: PageLayer (version 1.8.2)
PHP version 8.3.2
Error Details
=============
An error of type E_ERROR was caused in line 338 of the file /home2/odsxlite/public_html/wp-content/plugins/pagelayer/main/blocks.php. Error message: Uncaught ArgumentCountError: Too few arguments to function pagelayer_blocks_the_post(), 1 passed in /home2/odsxlite/public_html/wp-includes/class-wp-hook.php on line 324 and exactly 2 expected in /home2/odsxlite/public_html/wp-content/plugins/pagelayer/main/blocks.php:338
Stack trace:
#0 /home2/odsxlite/public_html/wp-includes/class-wp-hook.php(324): pagelayer_blocks_the_post(Object(WP_Post))
#1 /home2/odsxlite/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array)
#2 /home2/odsxlite/public_html/wp-includes/plugin.php(565): WP_Hook->do_action(Array)
#3 /home2/odsxlite/public_html/wp-content/plugins/td-composer/includes/tdc_main.php(1145): do_action_ref_array(‘the_post’, Array)
#4 /home2/odsxlite/public_html/wp-content/plugins/td-composer/td-composer.php(160): require_once(‘/home2/odsxlite…’)
#5 /home2/odsxlite/public_html/wp-includes/class-wp-hook.php(324): tdc_plugin_init(”)
#6 /home2/odsxlite/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array)
#7 /home2/odsxlite/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#8 /home2/odsxlite/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_wp_booster_functions.php(278): do_action(‘td_wp_booster_l…’)
#9 /home2/odsxlite/public_html/wp-content/plugins/td-composer/legacy/Newspaper/functions.php(21): require_once(‘/home2/odsxlite…’)
#10 /home2/odsxlite/public_html/wp-content/plugins/td-composer/td-composer.php(198): require_once(‘/home2/odsxlite…’)
#11 /home2/odsxlite/public_html/wp-includes/class-wp-hook.php(324): {closure}(”)
#12 /home2/odsxlite/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array)
#13 /home2/odsxlite/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#14 /home2/odsxlite/public_html/wp-content/themes/Newspaper/includes/wp-booster/tagdiv-wp-booster-functions.php(3): do_action(‘td_wp_booster_l…’)
#15 /home2/odsxlite/public_html/wp-content/themes/Newspaper/functions.php(19): require_once(‘/home2/odsxlite…’)
#16 /home2/odsxlite/public_html/wp-settings.php(611): include(‘/home2/odsxlite…’)
#17 /home2/odsxlite/public_html/wp-config.php(96): require_once(‘/home2/odsxlite…’)
#18 /home2/odsxlite/public_html/wp-load.php(50): require_once(‘/home2/odsxlite…’)
#19 /home2/odsxlite/public_html/wp-admin/admin.php(34): require_once(‘/home2/odsxlite…’)
#20 /home2/odsxlite/public_html/wp-admin/post.php(12): require_once(‘/home2/odsxlite…’)
#21 {main}
thrown
Hi, I’ll ask in a different way.
On Homepage templates I have two modules:
Big Grid Flex 2
Block 9
Both have a filter:
All categories, Latest.
What to do to disable one ID – one category from both modules?
hi,
My offers icon is not showing on my homepage in the block 2 element?
<br />gintama 3<br />
all the other icons show as you can see but not the offer one?
Also the icon does appear in the catergories page?
<br />dog outline images free<br />
hope you understand and can help?
Hello @andrian533!
The other website used the old default blocks (standard pack) with other configurations; that’s why it is working like that.
Thank you!
Hello @southview92 !
The flex block can show only the excerpt. Another workaround there could be to use a module template that can be built custom and displayed with the help of an element called Flex Block Builder: https://forum.tagdiv.com/modules-builder-newspaper-theme/. Add an inline text in your custom module to display the paragraph like this: https://app.screencast.com/FdiRIpFNwZL9t
Also, you can try to add new paragraphs to your excerpts in posts and display them in flex blocks: https://app.screencast.com/zWp2SUrlS1Zbv
I hope that helps you!
Thank you!
Hello @Shony!
The element Flex block with a special filter, for example, the current category, will dynamically display the posts from the current category depending on which one you are in. So, you need to add a flex block with that filter in the category template once, and it will display the posts for each category if you have the same category template assigned to your categories. For more information, check this guide: https://forum.tagdiv.com/flex-block-settings-guide/
Thank you!
Hello @mediagod!
Make sure you use a flex block with cache block results enabled on the homepage, for example. Save and view the page. Click on some title articles from that block. Go to System Status and check the option that will appear there.
If the option isn’t there, then deactivate all plugins except tagDiv ones. Also, if you are using a cache plugin, deactivate it, clear all cache, and try again.
Thank you!
Hello @Southview92 !
Unfortunately, you can’t have two different posts on a single template. But you can add any post with a flex block, for example, and when you click on the article title, it will lead you to the single template of that article with its content.
Thank you!
Hello Enry!
I can see that the widget is appearing after the block and not in the second column.
It is because it have no space there maybe and the width is too big. You can specify the width of your columns in percent like this: https://prnt.sc/SUVH-Y15HNL9 and apply this setting on the row: https://app.screencast.com/mD2eQ3TFX022C
The elements are not clickable or what is the issue there? Please apply the settings and let me know if there’s still an issue.
Thank you!
Hello!
Please make sure you have the latest update of the theme and plugins.
Make sure the block has no offset: https://forum.tagdiv.com/offset-feature/
Thank you!
Hello, i have problem, my website can’t showing image in new tab, because of that my image CDN not working because its can’t track the image address (https://prnt.sc/Ctyi_zQxdZJa). But i see the other website they image can be track and open (https://prnt.sc/oMYyoiel12fW). (The other web using same Newspaper Themes)
How to enable this features?? so my Image CDN can works with this. Thank you.
WHERE IS THE OPTION TO DELETE THE BLOCK CACHE!?! This is NOT appearing on the system status page per your instructions. This is absolutely needed. The block cache is currently showing stale results on my site and there is no way to clear it.
Before you even ask, the cache time has passed and the block still shows old results. It is absolutely the cache because the block shows the correct content when the cache is disabled.
I am running the latest version of the Newspaper Theme 12.6.3
Simchris, thank you very much for the tips. Indeed, when I rolled back Publish Press to its previous version, all the author blocks reappeared. Then I re-updated Publish Press to its current version and the author boxes no longer appear. It doesn’t look like there are any complaints on the WordPress forum, however, I’m only on the free version, so maybe the paid version addresses this problem. I submitted the question on the free forum, but have not heard a reply. For security reasons I think I’ll keep the plugin in its most recent version until I hear a response. Thanks again.
Hello,
I have the same problem as in this post: https://forum.tagdiv.com/topic/problem-author-and-the-review-stars/
I could not find the solution in the discussion.
The options are enabled on the grid, and also the theme panel settings are on, but the review stars are not visible in Flex Blocks.
please Consider it solved, I found the solution in Theme panel –> Block Setting —->Meta info —-> SHOW AUTHOR NAME.
Thanks
Hello,
All of our author boxes within our articles have disappeared. This occurred without an update to the Newspaper version, but it appears our Publish Press plugin, which we use for the author boxes, was updated on Wednesday. I’m guessing this is when the problem occurred. For the author boxes within posts we have been using a shortcode block at the beginning of the post with [author_box] as the code and then the shortcode block again at the end of the article with [author_box layout=”boxed”] as the code.
Do you think this is a problem with WordPress, The Newspaper Theme, or the Publish Press plugin? Any advice is appreciated. Thank you.
I know there is the ability to use jetpack+stats to list a flexblock by most recent last 7 days but jetpack is bolted. Is there a way to connect KOKO to tag dev counter?
Thanks
Dear sir
I use the Newspaper theme and I face a problem in my Home Page where I use the Flex Block element.
For example the first Flex Block 3 in my home page is a category for “ΠΑΡΕΜΒΑΣΕΙΣ” doesn’t update it with the latest post of the category, (but display the last minus 1 post).
On my filters I have Category filter: ΠΑΡΕΜΒΑΣΕΙΣ – [id : 25], Sort Order: -Latest.
The same proble is in all of my “Flex box” in home page where I use specific category.
When I use all category its ok.
Please check the image
In case you need credentials to fix up the problem please feel free to do it
I will send the credentials in contact@tagdiv.com
Thanks you
Hello Mar!
We have an element or shortcode called “Posts Form Location Finder” that can help you.
You can display your taxonomies and filter them with the help of this block: https://forum.tagdiv.com/filters-sorting-taxonomies/.
Thank you!
So, turning all plugins off then clicking (install update) worked for this error?
Thanks in advance for your help!!
Is this a Jetpack blocking issue, anyone know specifically which plugin?
I dont think a screenshot would help to explain my issues in more detail.
In the welcome to Newspaper section under welcome tab it simply reads:
Fast start your Website – Failed to find TGM, Im guessing this is tagdiv Manager?
The actual issue I am having is when I update the theme to 12.6.3.
I lose half the update pack, I believe specifically Tagdiv composer, Tasdiv Library, and standard pack.
I have had to allow a tech on to upload the additional applications a few times in order to update the theme. I believe they thought a plugin was blocking some of the files.
Is this a known issue?
Is there a way around this like buying a new license, disable plugin or allow you on my site to view this process completely as wordpress dont know why its happening either.
Thanks in advance
Hello,
You have Flex Block 1 here ->https://i.imgur.com/PI8QRip.png if you filter it to “Category -Current category” => https://i.imgur.com/7P99qx0.png, and then the block will display posts for each category. Also, if you want there to be random posts, then please delete the offset value from posts loop -> https://imgur.com/nB69YgU -> https://forum.tagdiv.com/offset-feature
Thank you!