error displaying magento

Install magento 2 on my premises and I have these errors and I can’t see the system Already use the following commands php bin/magento setup:upgrade php bin/magento setup:static-content:deploy php bin/magento setup:di:compile php bin/magento cache:flush php bin/magento cache:clean But this does not solve my problem, the maximum I can see on the screen is this How…

Grab all the posts for particular category

So I have a class called Recipe and inside I have a get() method as shown below: public function get() { $taxonomies = get_terms([ ‘taxonomy’ => ‘recipe-categories’, ‘hide_empty’ => false ]); $output = ”; if (!empty($taxonomies)): $output = ‘<div>’; foreach ($taxonomies as $category) { if ($category->parent == 0) { $output .= ‘<p><a href=”‘ . get_home_url()…

Grab all the posts for particular category

So I have a class called Recipe and inside I have a get() method as shown below: public function get() { $taxonomies = get_terms([ ‘taxonomy’ => ‘recipe-categories’, ‘hide_empty’ => false ]); $output = ”; if (!empty($taxonomies)): $output = ‘<div>’; foreach ($taxonomies as $category) { if ($category->parent == 0) { $output .= ‘<p><a href=”‘ . get_home_url()…

Switch between Template view of proucts based on user selection woocommerce

I use woocommmerce and i have two template view for products (content-product.php) and (contentcarousel-product.php) . in (archive-product.php) per defaut display first template like this <?php wc_get_template_part( ‘content’, ‘product’ ); ?> i created two button like this with onclick event with javascrip <button onclick=”Viewone()”> view 1</button> <button onclick=”Viewtwo()”> view 2</button> i want when click button 1…