## How to select p terms with powers larger than 1 in a given expression?

My expression is:

$$expr = \frac{p^{\frac{1}{3}} q + 5}{3q^2} + p^2 + (p -1)^{\frac{1}{3}}$$

And I want to single out all terms with $$p^k, k > 1$$

How should I do that? (If there is any way other than applying Series[] would be the best, since I want it to be less time-consuming when dealing with large expr.)

## How to make a custom category archive page display names for each of terms when displaying a page showing more than one

I have a custom page for a specific custom category which was derived from archive.php. On this page I have a "Search and Filter" (plugin) set of checkboxes which allows for a selection of one or more categories and the results are then displayed. This all works well.

I’m using a custom category (added with Pods) called "rk_themes" and labelled as "Themes".

I need to show the term names that were selected in a status line along with the number of results. It should show “10 works found for Category Name A, Category Name B”.

The URL for this is like https://example.net/theme/category-name-a+category-name-b

Showing the count is easy enough, but I can’t figure out how to access the term names. A var_dump of WP_Query suggests there is only a label for the first term.

## How to get the most frequently searched terms for people of a particular profession?

Suppose you want to know what radiologists usually search for. Is there a service that can sell you this data?

I have no experience with SEO, but I suppose that only the company that operates a given search engine has access to search frequencies. There may be exceptions, such as inadvertently running spyware of all kinds, but none that would help us. I was thinking about getting this data from Google.

The main tool to access the Google search data is Google Trends. You can use it to see the top 25 searches for a given time interval, geographic location, category, but not by profession. Also the number of results seems to be limited to 25.

I am quite surprised that it seems so hard to achieve. However, I learned that when a seemingly trivial endeavor turns out to be very hard, it usually means that things are done differently. If you have any advice, not necessarily Google related and not necessarily answering this question, I would love to hear it.

## How creative should the DM let an artificer be in terms of what they can build?

Just how creative should the DM let the Artificer be? One of my players is a guy who thinks way too hard on how to solve problems he’s not meant to ‘Solve’ as a player.

For example, I have a little set-piece in place for my campaign setting where there are roaming clouds of illusion magic that will appear at random times around the region. These clouds effectively have the magical power of 9th-level illusion magic violently swirling within them, causing all kinds of chaos when they appear.

They are meant to be a hazard that the players are meant to avoid, but my Artificer player thinks differently. He surmises that with all his tool proficiencies like Smith’s tools, Tinker’s tools, Alchemy supplies, etc., that he should be able to build any kind of contraption he wants given time. I tried to explain that doing so would grind the game to a halt, as he would need to study for years in game time to come close to building the ‘giant magical vacuum’ that can suck up the illusion storms, and he wouldn’t even be able to determine whether it would work or not.

This is only one of many hypothetical arguements we’ve had in the past, and I would just like a reference to point to in the future if he ever picks to play Artificer again:

Exactly how much of the hypothetical creativity should be allowed to actually happen when a player uses meta knowledge to build machines in a D&D setting? What power do artisan’s tools actually have in the hands of an Artificer?

## Imported posts and terms but terms not appearing on the frontend

I created a giant import that grabbed both taxonomy terms and posts from a different application. To import the terms I used wp_set_post_terms( $post_id,$ term_ids, 'my_taxonomy' ); which works because I see them on the edit screen for each post.

However, when I go on the frontend and look at my post the terms are empty. If I go back on the edit screen and just click on "Save" then they finally appear on the front end.

I have close to 2,000 records and doing this manually would be quite unwieldy and I can’t for the life of me figure out what happened! How do I force this update across the board programmatically?

I’ve tried using both clean_term_cache(); and clean_object_term_cache(); and it didn’t seem to make a difference. Maybe I’m calling these wrong but it’s not doing a thing as far as I can tell.

I’ve tried:

• clean_term_cache
• clean_object_term_cache
• delete_option($tax.’-slug_children’); • delete_option($ tax.’_children’);
• clean_taxonomy_cache($tax); • wp_cache_flush(); ## How are tamed animals treated in terms of abilitys? In a campaign I am playing in the dm allows the taming of wild animals, but you have to devote time and resources to training them to follow commands after the initial taming. Would these animals after the training just have the basic stats for that creature, or would they get the same special abilitys over time as a beast master rangers or druids animal companion? For example in my current situations I tamed an owl, so would it just use the owl statblock or would it get the abilitys of a beast master ranger or druids animal companion of being able to take class levels and all the other stuff that goes with it? ## Is dropping a weapon “free”, in terms of action cost? I’ve seen many people on StackExchange and other forums mention that you can drop something as a free action, but I’ve never seen it sourced, or come across support for it in the Player’s Handbook. The "Other Activity on Your Turn" section (p. 190) makes no mention of dropping items. I’ve personally been ruling that dropping an item counts as an "interaction with the environment", but seeing how frequently I’ve seen people say otherwise I’m assuming I’m missing something. ## In terms of RAW what stops a wish manipulating the deck of many things In terms of RAW what should happen if a player with the deck of many things drew the wish card or cast wish, and then wished to only ever draw specific cards from the deck, or to the only ever draw the good cards? ## How do I make my terms for each product display via foreach loop? (woocommerce) This is my current loop to display my products via woocommerce. When I do print_r($ category_array); It returns the array, but when I try to use a function to call it so I can do what I want to with the data, it makes and my entire screen doesn’t display after the loop. Maybe it’s a mistake in my function? Still very new to woocommerce and wp_loops. Thank you

            <?php             // WP_Query arguments             $args = array( 'p' => 'product', 'post_type' => array( 'product' ), 'order' => 'ASC', 'post_per_page' => 20, ); // The Query$  query = new WP_Query( $args ); // The Loop if ($  query->have_posts() ) {                 while ( $query->have_posts() ) {$  query->the_post();                     function filter_categories($categories) { foreach ($  categories as $category) { echo$  category->name;                             }                     }                       ?>                     <div class="row">                         <div class="col-2">                             <?php echo the_post_thumbnail(get_the_ID(), 'thumbnail'); ?>                         </div>                         <div class="col-7">                             <a href="<?= get_permalink(); ?>"><?= the_title()?></a>                             <br/>                             <?php                             $category_array = get_the_terms(get_the_ID(), 'product_cat'); filter_categories($  category_array);                             ?>                         </div>                         <div class="col-3 text-right ">Price</div>                     </div>                     <?php                 }             } else {                 // no posts found             }              // Restore original Post Data             wp_reset_postdata();             ?> 

## What does “(any sword)” mean in terms of Magic Items?

In the Dungeon Master’s Guide section for Magic Items (Chapter 7), a lot of items have a requirement that says (any ___), specifically weapons and maybe armor if I remember correctly. For example, Flame Tongue says: “Weapon (any sword)”. Is this just to classify what the Item can be, or can you use another Magic Item in this place? Personally, I think a Vicious, Flame Tongue, Dragon Slayer, Vorpal Sword would be dope, but I’m not sure if that would work.