Match tag names with form titles

I am trying to match tag names with form titles to fetch the correct form into the current post, to subscribe to new posts tagged with the current posts tag. I only have 1 tag assigned per post.

The code for categories works well, and I tried to transcribe it for tags, but I am afraid there are syntax errors in the code, because it does not work.

How do I write the correct code?

add_shortcode( 'subscribe-to-tag', function() {    global $  wpdb, $  post;   $  the_tag = get_the_tags( $  post->ID ); $  tag_name = $  the_tag[0]->tag_name;    $  id = $  wpdb->get_var($  wpdb->prepare("SELECT ID FROM wptq_forms WHERE name = '{$  tag_name}';"));    if (is_null($  id)) { return ''; }    return do_shortcode( '[newsletter_form id="' . intval( $  id ) . '"]' ); } );  

Translate different ports on the same hostname/server, to their own host names [closed]

For example, if I have Jonathan-PC.local, how would I translate Jonathan-PC.local:81 to wordpress.Jonathan-PC.local, Jonathan-PC.local:82 to joomla.Jonathan-PC.local, and Jonathan-PC.local:83 to drupal.Jonathan-PC.local? Is this Network Address Translation? Would a DNS Server be involved in this translation?

What is the origin of “Improved”, “Lesser”, and “Greater” in spell names?

In D&D 3rd and 5th edition, many spells have variants that begin with the words "Lesser", "Greater", or "Improved" attached to the name of the basic variant of the spell. Some other less common words are "Minor", "Major", and in Pathfinder, "Communal".

I’ve always thought that was cool and interesting.

But I don’t think I played any other roleplaying game that used these terms; nor any such video game that predates D&D 3.0. I also didn’t see these words in fantasy books or in real life.

In fact, these spell names are probably where I see the word "lesser" the most in all English.

Did the template of names like "Lesser (something)" and "Greater (something)" originate with D&D 3, or is it older?

alternate names for d20 base classes

Good day all. Base classes names in d20 modern are ugly. I can’t hear "strong hero" or "fast hero". I’m searching a way to present the basic classes in some more fancy way. The names are actually these:

  • Strong Hero
  • Fast Hero
  • Tough Hero
  • Smart Hero
  • Dedicated Hero
  • Charismatic Hero

I’d like some names that are actually generic and can give a clue of the primary ability. Actually I’m thinking about making a list of generic jobs (or adjectives) for each class, so for example the strong here could be a lifter, or a muscle guy/girl, the fast hero could be a runner, but I don’t like this solution too much.

Anyone has used a different solution?

What were the names of the colored bolt spells of old D&D?

I remember hearing from people who played old D&D about a group of spells that were effective at destroying whatever they were aimed at. I think they were called something like black bolt, green bolt, and blue bolt, and they were pretty much the DMs tool for scaring the players… Or the epic players’ tool for scaring the GM. Does anyone know what I’m taking about?

Writing a list of names, with a limited amount of “active” letters at a time. Algorithm to sort the names to reduce the amount of swapping letters?

While making name-tags for a dinner seating, I stumbled upon a problem which I can’t find any algorithm to solve, and I’m not sure where to begin.

The goal is to write the name of each dinner guest on a card, completing one name at a time. The names are written with old-fashioned rubber stamps, so only 6 letters can be "active" at any given time. When a new letter is required, one of the active letters has to be swapped out for the new letter.

The problem is to sort the names in such an order, that I need to do the least amount of letter-swapping.

Example
I want to write the names:

  • Jack
  • Julie
  • Chuck

I can do this with 3 letter-swaps
Initial letters: J A C K H U
Write: Jack, Chuck

{swap A, C, K with L, I, E}

New active letters: J L I E H U
Write: Julie

Now I want to find an algorithm that, given a list of names and a limit of active characters, provide the order of names and which letters to swap at each name, to reduce the total amount of letter-swaps.

Any ideas or pointers are welcome.

2 phone names in the hotspot section

I use a note 10 plus and reset it to factory settings since I was giving it for repairs for screen issue. I have not yet given it for repairs and happened to check my hotspot and it shows samsung galaxy note 10 plus 15 C9? what is this supposed to mean, Is someone using C9 hacking my phone? I am concerned.

How to hide WordPress users’ names externally?

I have several users creating posts in WordPress, but I don’t want any of their names to appear publicly. On the site, I want it to only say By: Website Editor.

This also means that the names should not appear in any other related URLs, for example author URLs. If someone were to visit www.example.com/?author=3 for example, it should not reveal any names. I don’t mind disabling author URLs completely if that’s easier to do.

The SEO plugin I use also shows the name of the author in the source, that’s gotta go away also.

And in the backend, the names should appear just like usual.

How could I achieve this?

Thanks!