Can (slow) Internet speed get you a 500 server error? [closed]

No. 500 error will return when you have server error. PHP error, etc. See response code reference. The HyperText Transfer Protocol (HTTP) 500 Internal Server Error server error response code indicates that the server encountered an unexpected condition that prevented it from fulfilling the request. This error response is a generic “catch-all” response. Sometimes, server … Read more

$wpdb selects wrong database

$_SERVER[‘DOCUMENT_ROOT’]; is not going to include secondsite. So all the files, including wp-config.php with the database details, are coming from the root public directory. To get the current directory, including subdirectories, use any of these: getcwd(); dirname(__FILE__); basename(__DIR__); But if your file is in a deeper folder, you can’t find the secondsite directory without specifying … Read more

Shortcode with foreach

You’re trying to concatenate a foreach statement in to a string, which can’t be done… You need to add the output that you need to your existing string, not concatenate it function create_galeri_shortcode( $atts ) { $atts = shortcode_atts( array( ), $atts, ‘galeri’ ); if ( has_post_format( ‘gallery’ ) ) { $images = get_post_meta( get_the_ID(), … Read more

woocomrce pay here button help

I just found a free WooCommerce extension for Quote implementation. REQUEST FOR QUOTE PLUGIN: https://woocommercequoteplugin.com/ Customer adds products to the Quote from website. All products will be displayed in Quote List and customer sends the quote request to the website Admin. Website admin views the quote and creates the proposal as shown in below screenshot … Read more

How can I create this type of table/catalog? [closed]

You should create custom post type – you can do it with code in functions.php or using a plugin Create basic page template to loop through new post type Add custom fields to store extra data as in tour screenshot. I usually use acf plugin for it Fine tune your new page template with the … Read more