Hello there!
I have the following shortcode:
[netsposts include_link_title=”true” include_blog=”3″ thumbnail=”true” size=”medium_large” post_type=”tribe_events” include_acf_fields=”datum” hide_excerpt=”true” read_more_text=” ” order_post_by_acf_date=”datum asc” paginate=”true” hide_acf_labels=”true” show_after_date=”datum::show_after_date=”datum::10 August 2024″]
My Date format in the ACF Fiel ist j. F Y, the way I type it, is exactly as shown in the field. Still the posts from the event calendar are not filtered at all. What do I do wrong?
Thanks!
Installed Network Posts Extended a few years ago and it has been working flawlessly since. (Awesome plugin BTW) I moved the website to another server and now no posts are showing for any of the short codes. There doesn’t seem to be any errors, just empty div tags. Tried deleting and reinstalling the plugin. Tried just basic short code and still get nothing. The entire site was cloned to the new server and then the IP updated at the registry, everything else on the WordPress site/network works fine. The server was very similar to the original but a few things changed (Ubuntu 20.04 -> Ubuntu 22.04, MariaDB -> MySQL.)
Getting this in the debug log
[16-Jun-2024 22:34:44 UTC] WordPress database error Access denied for user r’@’localhost’ to database ” for query CREATE TEMPORARY TABLE u21_network_posts_results AS SELECT ID,1 as blog_id,post_title,post_excerpt,post_content,post_author,post_date,post_type FROM u21_posts WHERE (post_type=’post’) AND (u21_posts.post_password=”) AND (post_status=”publish”) made by require(‘wp-admin/edit-form-blocks.php’), block_editor_rest_api_preload, array_reduce, rest_preload_api_request, rest_do_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, WP_REST_Posts_Controller->get_item, WP_REST_Posts_Controller->prepare_item_for_response, apply_filters(‘the_content’), WP_Hook->apply_filters, do_shortcode, preg_replace_callback, do_shortcode_tag, netsposts_shortcode, NetworkPosts\Components\db\NetsPostsQuery->get_posts, NetworkPosts\Components\db\NetsPostsQuery->get_rows, NetworkPosts\Components\db\NetsPostsQuery->create_temporary_table
[16-Jun-2024 22:34:44 UTC] WordPress database error Table ‘.u21_network_posts_results’ doesn’t exist for query INSERT INTO u21_network_posts_results SELECT ID,9 as blog_id,post_title,post_excerpt,post_content,post_author,post_date,post_type FROM u21_9_posts WHERE (post_type=’post’) AND (u21_9_posts.post_password=”) AND (post_status=”publish”) made by require(‘wp-admin/edit-form-blocks.php’), block_editor_rest_api_preload, array_reduce, rest_preload_api_request, rest_do_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, WP_REST_Posts_Controller->get_item, WP_REST_Posts_Controller->prepare_item_for_response, apply_filters(‘the_content’), WP_Hook->apply_filters, do_shortcode, preg_replace_callback, do_shortcode_tag, netsposts_shortcode, NetworkPosts\Components\db\NetsPostsQuery->get_posts, NetworkPosts\Components\db\NetsPostsQuery->get_rows, NetworkPosts\Components\db\NetsPostsQuery->insert_temp_data
Seems to be a db permission issue. Any suggestions or direction would be greatly appreciated.
Thanks, Danny
Hi,
when i open in my multisite’s subsite the settings (admin) page of “Network Posts Extended” plugin, I get following error in my Apache error log and page crash.
[Fri Apr 19 05:30:08.974202 2024] [php:error] [pid 39699] [client 87.92.171.122:61928] PHP Fatal error:? Uncaught TypeError: fgets(): Argument #1 ($stream) must be of type resource, bool given in /var/www/html/wp-content/plugins/network-posts-extended/components/NetsPostsTemplateRenderer.php:42\nStack trace:\n#0 /var/www/html/wp-content/plugins/network-posts-extended/components/NetsPostsTemplateRenderer.php(42): fgets()\n#1 /var/www/html/wp-content/plugins/network-posts-extended/components/NetsPostsTemplateRenderer.php(30): NetworkPosts\\Components\\NetsPostsTemplateRenderer::render_template()\n#2 /var/www/html/wp-content/plugins/network-posts-extended/components/resizer/NetsPostsThumbnailResizerClient.php(64): NetworkPosts\\Components\\NetsPostsTemplateRenderer::render()\n#3 /var/www/html/wp-content/plugins/network-posts-extended/components/settings/NetsPostsBlogSettingsPage.php(30): NetworkPosts\\Components\\Resizer\\NetsPostsThumbnailResizerClient->get_blog_options_form_html()\n#4 /var/www/html/wp-includes/class-wp-hook.php(324): NetworkPosts\\Components\\Settings\\NetsPostsBlogSettingsPage::print_page()\n#5 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()\n#6 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action()\n#7 /var/www/html/wp-admin/admin.php(259): do_action()\n#8 /var/www/html/wp-admin/options-general.php(10): require_once(‘…’)\n#9 {main}\n? thrown in /var/www/html/wp-content/plugins/network-posts-extended/components/NetsPostsTemplateRenderer.php on line 42, referer: https://uni321.com/demo/wp-admin/plugins.php
Some information about my WordPress:
So, I cannot use the plugin. Any idea when this bug would be fixed?
]]>Hello,
I just installed the plugin to see if it will work for my needs. I am getting a critical error message when I try to open the settings page. I am also seeing in the logs. Any suggestions?
[27-Feb-2024 01:08:04 UTC] PHP Fatal error:? Uncaught TypeError: fgets(): Argument #1 ($stream) must be of type resource, bool given in /var/www/wordpress/wp-content/plugins/network-posts-extended/components/NetsPostsTemplateRenderer.php:42
]]>Hello Sir, Can you help me to make the Widget from Plugins Network Post Extended into a Slide.
This Image Example from Desktop Version: https://prnt.sc/gQgKm8EC6-ra
And here from mobile: https://prnt.sc/CwL2-hJMS2tu
Help me Sir….
]]>if anybody’s site crashed after the latest update just ftp upload the latest version to your server and override all files. It will fix the php error. So sorry for this. For some reason only the directories and not files got uploaded to the WordPress repository. All is fine now.
]]>Update over the weekend crashed our site. Error logs show “PHP Fatal error: Uncaught Error: Failed opening required …/wp-content/plugins/network-posts-extended/components/db/category/CategoryInclusionMode.php”
I removed the plugin for now and the site is back up. This is on a WP Multisite setup.
]]>Hi, if I choose size=’thumbnail’ it shows me a large image.
Also, how can I show posts in the grid? It’s not clear in the tutorial.
https://agaveplugins.com/agave-plugin/multisite/network-posts-extended/
Thank you
]]>First off – I love this plugin – I’m using it on a network at https://essential.construction and it’s a life saver.
A few feature requests:
Thank you and thanks again for the great plugin!
]]>I have an existing multi site installation after plugin installation we tried to use shortcode on one of primary site page , it was returning the blank data.
Any suggestion will be appropriated.
thanks
]]>Hi there – love the plugin and have been using it for a few years now. One thing I’ve noticed is that when the plugin imports the posts the urls that it’s sending folks to are not the normal urls, they show up as: /exchange/?p=2769 rather than what should be /exchange/question/what-are-the-steps-involved-with-building-a-single-storey-house/
Wondering if this is normal or if I need to tweak something?
The plugin is in use on the homepage here:
]]>We updated the plugin yesterday 4th of May, but the force doesn’t seem to be with us this day ??
We noticed any page we had the NPE on failed to load and was displaying in a very funny way with text scattered everywhere. To help you better understand the issue, I downloaded the debug.log file from our file manager for your use. The file is available here: https://drive.google.com/file/d/1_9s-1NS3GXP4btys1HSSkYKiwg-AkQdP/view?usp=share_link
Please begin reading the bugs from 4th May, 2023, up until today.
An image of a broken page is also shown here: https://prnt.sc/LWeU2FxeRxA0
]]>When pulling feature images the plugin forcibly loads them as http, so on https sites you get a mixed content warning in the console. The plugin should be agnostic and not alter the http/https and use the default.
]]>Hi,
On the plugin setting page it refers to a broken link.
For a complete tutorial visit:
https://wp-plugins.johncardell.com/network-posts-extended/
Is there a guide to setting this up please? All I can see on website is the list of shortcodes.
Thanks in advance
]]>I used to use this plugin leveraging the shortcode below. After a plugin update (not sure which versions) no posts/pages with any combinations of filters/params will render an output.
The shortcode is registering and displaying <div class=”netsposts-menu”></div> with nothing inside
[netsposts include_blog="3" post_type="support_tickets" taxonomy_type="support_ticket_status" taxonomy="pending" must_include_categories='true']
OR
[netsposts post_type="page"]
]]>
Duplicate content on multi sites is a big problem in terms of SEO. It is possible to solve this problem with canonical url. Is there such a feature? Or we don’t knoe how to use it.
Hep please
Thank you
]]>Hi I am using this shortcode [netsposts post_type=’page’ include_post=’7411′ full_text=’true’ ] it works for all the pages except page containing woocommerce products. only page title show is there any solution please?
]]>Hello and thank you so much for creating this great plugin.
Your documentation covers our exact case with events page but instead of ACF we use Jet Engine custom fields. We would like to display only upcoming events.
I used include_post_meta and get a label:value but when it comes to a datetime field it returns a Unix time stamp. Is it possible to format it { M j | g:ia } and hide the label?
Also, would it be possible to only show upcoming events like it is possible for ACF fields? Thank you!
]]>Hi – Have started seeing this warning in my logs:
PHP Warning: Undefined array key 1 in network-posts-extended/network-posts-extended.php on line 327
PHP8, WP 6.1.1, current version of Network Posts Extended, and I’m using a shortcode that sorts my posts by a lastname ACF field in asc alpha order and it looks like line 327 pertains to ACF. Advice? Thanks much.
]]>Hi, actually in the header.php to show the post time there is a below code:
what i want is to print the post date/time which is coming from “Date Format” and “Time Format” from the wp General Settings
how i do change the function and these 2 steps?
Thanks
$date_post = '';
if ( array_key_exists( 'post_date', $the_post ) ) {
$date = new DateTime( trim( $the_post['post_date'] ) );
$date_post = date_i18n( $format, $date->getTimestamp() );
}
$html .= '<span>' . __( 'Published', 'netsposts' ) . '</span><span>' . ' ' . $date_post . '' . '</span>' . ' ' . '<span>' . __( 'out', 'netsposts' ) . '</span>'
. ' <span>' . NetsPostsHtmlHelper::create_link( $blog_url, $blog_name, $open_link_in_new_tab, 'netsposts-source-link' ) . '</span>
';
]]>
Hi there,
Is it possible to pull posts with both a specific cateogry AND a specific tag.
I’ve been crawling through the docs but cant seem to figure a way to do both..
Thanks
Guy
Shortlink code being used:
[netsposts use_layout='inline' exclude_blog='1' paginate='true' load_posts_dynamically='true' list='6']
When I click on a pagination link, it just spins and gets stuck. The javascript console throws this:
Uncaught (in promise) TypeError: Cannot read properties of null (reading 'setAttribute')
at setWrapperId (netsposts-public.js?ver=1.0.2:13:17)
at netsposts-public.js?ver=1.0.2:58:46
Using plugin version 7.6.4 on WordPress 6.1.
]]>Hi Mister, Please help me, how to replace pagination with load more after click. Please help me sir.
]]>thanks for your great plugin
just a heads-up that I’m getting a deprecated code notification
wp-content/plugins/network-posts-extended/components/db/NetsPostsDBQuery.php:45
Required parameter $include_posts follows optional parameter $type
I haven’t fully implemented things yet so don’t know if this is causing a problem or not, just thought I’d add it to your ‘to do’ list
]]>Hi,
I have the plugin Network Activated but nothing is coming through. I have an empty DIV with the class netsposts-menu. I am using this shortcode. [netsposts include_blog=’2′]
Thanks
]]>NPE occasionally lists Advanced Custom Fields values in reverse order. We have a list of events on nerdnite.com which NPE assembles from posts on subsites with the following parameters:
The code output from NPE usually outputs the event date followed by the city name (and then I use CSS flexbox to put the city name above the date on the webpage).
Once in a while — I’m not sure how often — NPE writes the two ACF fields to the code in the opposite order. There seems to be no rhyme or reason. If you look at this screenshot, you will see that I created a test post on the San Francisco site and its date and city name display in the desired order, unlike the other two San Francisco posts.
We saw this happening a bit in development in 2020 but we could never replicate it. We would create test posts on subsites that had previously had their data pulled in reverse order and the test posts would have their data in the correct order. We crossed our fingers and thought the mixed-up data had cycled out of the system. Out in the real world, our subsites were hosting almost no events (due to the pandemic), so the system wasn’t getting much of a test.
I note that, regardless of the order of date/city on the webpage, NPE consistently orders the posts in correct order based on ascending dates.
Here’s the shortcode used on the page:
[netsposts taxonomy='Event' taxonomy_type='category' days='365' titles_only='true' include_link_title='true' date_format='Y-m-d' link_open_new_window='true' paginate='false' list='100' hide_source='true' include_acf_fields='npe_nn_city_name, event_date' hide_acf_labels='true'
order_post_by_acf_date='event_date asc' exclude_all_past_events='true' acf_date_format='Y-m-d'
wrap_start='<li>' wrap_end='</li>'
wrap_title_start='<h3>' wrap_title_end='</h3>']
NPE doesn’t care about the order of the arguments for include_acf_fields='npe_nn_city_name, event_date'
Reversing them doesn’t change the output on the webpage.
I have a multi -site network https://al3ilm.net
I deleted a site from it years ago
Error_Log is still a mistake
Due to the addition of Network Posts Extended
Although I deleted everything related to the site even from the MySQL database
The mistake is:
[08-May-2022 14:05:23 UTC] ??? Table '********_***.***_54_options' doesn't exist ?? ????? ?????? ???????? ????????? SELECT option_value FROM ***_54_options WHERE option_name = '***_54_user_roles' LIMIT 1 ?????? ?? require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, NetworkPosts\Components\NetsPostsThumbnailManager::initialize, NetworkPosts\Components\NetsPostsThumbnailManager::init_thumbnail_sizes, NetworkPosts\Components\NetsPostsThumbnailManager::get_thumbnail_sizes, switch_to_blog, do_action('switch_blog'), WP_Hook->do_action, WP_Hook->apply_filters, wp_switch_roles_and_user, WP_Roles->for_site, WP_Roles->get_roles_data, get_option
[08-May-2022 14:05:23 UTC] ??? Table '********_***.***_54_options' doesn't exist ?? ????? ?????? ???????? ????????? SELECT option_value FROM ***_54_options WHERE option_name = 'wpr_rucss_resources_version' LIMIT 1 ?????? ?? require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, NetworkPosts\Components\NetsPostsThumbnailManager::initialize, NetworkPosts\Components\NetsPostsThumbnailManager::init_thumbnail_sizes, NetworkPosts\Components\NetsPostsThumbnailManager::get_thumbnail_sizes, switch_to_blog, do_action('switch_blog'), WP_Hook->do_action, WP_Hook->apply_filters, WP_Rocket\Dependencies\Database\Table->switch_blog, get_blog_option, get_option
[08-May-2022 14:05:23 UTC] ??? Table '********_***.***_54_options' doesn't exist ?? ????? ?????? ???????? ????????? SELECT option_value FROM ***_54_options WHERE option_name = 'wpr_rucss_used_css_version' LIMIT 1 ?????? ?? require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, NetworkPosts\Components\NetsPostsThumbnailManager::initialize, NetworkPosts\Components\NetsPostsThumbnailManager::init_thumbnail_sizes, NetworkPosts\Components\NetsPostsThumbnailManager::get_thumbnail_sizes, switch_to_blog, do_action('switch_blog'), WP_Hook->do_action, WP_Hook->apply_filters, WP_Rocket\Dependencies\Database\Table->switch_blog, get_blog_option, get_option
[08-May-2022 14:05:23 UTC] ??? Table '********_***.***_54_options' doesn't exist ?? ????? ?????? ???????? ????????? SELECT option_value FROM ***_54_options WHERE option_name = 'thumbnail_size_w' LIMIT 1 ?????? ?? require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, NetworkPosts\Components\NetsPostsThumbnailManager::initialize, NetworkPosts\Components\NetsPostsThumbnailManager::init_thumbnail_sizes, NetworkPosts\Components\NetsPostsThumbnailManager::get_thumbnail_sizes, get_option
[08-May-2022 14:05:23 UTC] ??? Table '********_***.***_54_options' doesn't exist ?? ????? ?????? ???????? ????????? SELECT option_value FROM ***_54_options WHERE option_name = 'thumbnail_size_h' LIMIT 1 ?????? ?? require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, NetworkPosts\Components\NetsPostsThumbnailManager::initialize, NetworkPosts\Components\NetsPostsThumbnailManager::init_thumbnail_sizes, NetworkPosts\Components\NetsPostsThumbnailManager::get_thumbnail_sizes, get_option
[08-May-2022 14:05:23 UTC] ??? Table '********_***.***_54_options' doesn't exist ?? ????? ?????? ???????? ????????? SELECT option_value FROM ***_54_options WHERE option_name = 'thumbnail_crop' LIMIT 1 ?????? ?? require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, NetworkPosts\Components\NetsPostsThumbnailManager::initialize, NetworkPosts\Components\NetsPostsThumbnailManager::init_thumbnail_sizes, NetworkPosts\Components\NetsPostsThumbnailManager::get_thumbnail_sizes, get_option
[08-May-2022 14:05:23 UTC] ??? Table '********_***.***_54_options' doesn't exist ?? ????? ?????? ???????? ????????? SELECT option_value FROM ***_54_options WHERE option_name = 'medium_size_w' LIMIT 1 ?????? ?? require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, NetworkPosts\Components\NetsPostsThumbnailManager::initialize, NetworkPosts\Components\NetsPostsThumbnailManager::init_thumbnail_sizes, NetworkPosts\Components\NetsPostsThumbnailManager::get_thumbnail_sizes, get_option
[08-May-2022 14:05:23 UTC] ??? Table '********_***.***_54_options' doesn't exist ?? ????? ?????? ???????? ????????? SELECT option_value FROM ***_54_options WHERE option_name = 'medium_size_h' LIMIT 1 ?????? ?? require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, NetworkPosts\Components\NetsPostsThumbnailManager::initialize, NetworkPosts\Components\NetsPostsThumbnailManager::init_thumbnail_sizes, NetworkPosts\Components\NetsPostsThumbnailManager::get_thumbnail_sizes, get_option
[08-May-2022 14:05:23 UTC] ??? Table '********_***.***_54_options' doesn't exist ?? ????? ?????? ???????? ????????? SELECT option_value FROM ***_54_options WHERE option_name = 'medium_crop' LIMIT 1 ?????? ?? require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, NetworkPosts\Components\NetsPostsThumbnailManager::initialize, NetworkPosts\Components\NetsPostsThumbnailManager::init_thumbnail_sizes, NetworkPosts\Components\NetsPostsThumbnailManager::get_thumbnail_sizes, get_option
......................
[Moderator note: Please, No bumping].
]]>Hi
Since I upgraded my WP MU site, I can not use this plugin any more. I have the latest plugin installed. the error message I have:
Deprecated: Required parameter $include_posts follows optional parameter $type in /home3/qcwrite1/public_html/home/wp-content/plugins/network-posts-extended/components/db/NetsPostsDBQuery.php on line 45
]]>I don’t understand why, but for some reason, NPE can not find the latest post from my first (excluding the main) blog, Id=2. I’m using the same shortcode for all of them, but the first one on the page wont show up.
Here’s the code:
[netsposts include_blog=’2′ list=’1′ days=’0′ thumbnail=’true’ wrap_start='<div style=”padding: 1em; border: 2px solid #ccc;”>’ wrap_end='</div>’ order_post_by=’date_order desc’]
I’m using the SAME shortcode for the rest of them, just changing out the ID number, and everyone else is working just fine, it’s only #2 that being a pita.
]]>Hi! First of all let me say I love this plugin, really helpful.
I have a shortcode on my main site retrieving all the posts from the other sites.
It works great excepts that in the category tag it displays always the main category from the main site, it only works properly if I change the subsite post category to an alternative one (not the main category).
Here is a little scheme in case I wasn’t clear:
Main Site
CAT 1: Default/main category from main site
Secondary site
CAT 2: Default/main category from secondary site (won’t display, displays CAT 1).
CAT 3: Another category from secondary site (it displays ok).
Here is the shortcode I’m using:
netsposts post_type=”post” days=”0″ titles_only=”false” thumbnail=”true” size=”medium” image_class=”w-100 mw-100 h-auto d-block” show_categories=”true” auto_excerpt=”false” excerpt_length=”75″ list=”9″ paginate=”true” show_author=”false” meta_info=”true” include_link_title=”true”]
Thanks for your help
]]>