I want to show the category image (set with ACF) inside a loop that shows it inside the cards, how can I do it?

<?php get_header();   $  category = get_category( get_query_var( 'cat' ) ); $  cat_id = $  category->cat_ID;  $  id_cat = array('parent' => $  cat_id); $  categories = get_categories( $  id_cat ); 

// Get particular category’s object info. $ queried_object = get_queried_object();

// (Optional depending on desired outcome) If you wanted to get the type of taxonomy. $ taxonomy = $ queried_object->taxonomy;

// (Optional depending on desired outcome) If you wanted to get the associated ID. $ term_id = $ queried_object->term_id;

// Get image ID for this field. $ attachment_id = get_field( ‘category_image’, $ queried_object );

// URL of image at specific size. $ image = $ attachment_id[‘sizes’][‘chosen-image-size’];

?> 
<section class="p-5">     <div class="container">         <div class="row text-center">             <h3><?php single_cat_title(); ?></h3>             <p><?php category_description(); ?></p>         </div>     </div> </section>  <section>     <div class="container animated">         <div class="row d-flex" data-masonry='{"percentPosition": true }'> 

‘.’ term_id ).'”>’ .$ category->name.”.’ ‘; } ?>


In evidenza

            <?php while(have_posts()): the_post(); ?>                 <div class="col-6 col-md-4 col-xl-3 mb-4">                     <div class="card text-center">                         <a href="<?php the_permalink() ?>">                                         <!-- Immagine Articolo -->                             <?php if(has_post_thumbnail()): ?>                                   <div class="m-1"><?php the_post_thumbnail('thumbnail') ?></div>                             <?php endif; ?>                         </a>                             <div>                             <h3><?php the_title(); ?></h3>                             <p><?php the_excerpt(); ?></p>                         </div>                         <a href="<?php the_permalink() ?>" class="btn btn-outline-dark btn-sm">Continua a                             Leggere</a>                     </div>                 </div>                     <?php endwhile; ?>                     <?php else: ?>                         <?php echo wpautop('ops.. non ho trovato nulla');?>                     <?php endif; ?>         </div>     </div> </section> 

Padding Inside a Floating div | Need Help

I am in the middle of creating a basic, plain jane, old school div layout. But for the life of me, I can't figure out how to get padding in the content area and side menu without the template distorting with extra padding. I've been searching online for hours — and I'm finding 'apparent' solutions, but when I try to implement them, they don't work. I now have a migraine. If anyone has a solution, I'd be rapt to know what it is.

Note: The template isn't complete, per se. I'm just trying…

Padding Inside a Floating div | Need Help

MySQL – Call a View inside a Stored Procedure

Let’s say, I have a table as follows

tbl_1

id             name                 status               usertype                         flag ================================================================================================ 1              Name 1                  1                    2                               0 2              Name 2                  1                    3                               0 3              Name 3                  1                    1                               0 4              Name 4                  1                    4                               0 5              Name 5                  1                    5                               0  

HTML PAGE

<select id="type" name="type">    <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option>  </select> 

My requirement is that I need to get all the data from table where the usertype is selected from the html page by the user (could be 1, 2, 3,4,5, etc.)

I want to create a view, and call that inside stored procedure

I cannot pass an argument inside of a View. So, I was told to create a stored procedure, and call the view inside it. The problem is, I don’t know how to do it.

Finding all the Combinations – N Rectangles inside the Square

I am a beginner in Computational Geometry (Combinatorics) using Wolfram Mathematica and I need help from experts in the field.

How can I compute all the possible combinations: 6 Rectangles inside the Square (10×10) using Wolfram Mathematica?

Considering that the RESTRICTIONS of the problem are:

1) No Rectangle Can Overlap  2) The 6 rectangles may be vertical or horizontal 

See the image examples of possible and accepted solutions: Image-Accepted-Solutions-Examples

OUTPUT – Vector 100 elements by line (TEXT FILE):


0,1,1,0,0, . . . , 0,0,6,6,6 (Note: Image Example 01)
1,1,1,0,0, . . . , 0,0,0,4,4 (Note: Image Example 02)
0,0,5,5,0, . . . , 0,0,1,1,1 (Note: Image Example 03)
0,0,0,2,2, . . . , 0,0,0,0,0 (Note: Image Example 04)
0,0,0,0,2, . . . , 0,0,0,0,0 (Note: Image Example 05)
6,6,6,0,0, . . . , 0,4,4,4,0 (Note: Image Example 06)
Continue Combination…


Note: Please, do not put mathematical formulas. I would like the source code in Wolfram Mathematica that processes the input data (execute combinatorics task respecting the restrictions) and writes the direct output for text file to each iteration due to combinatorial explosion problems (Memory Overflow). Being that the detailed text output it is the example above: "OUTPUT – Vector 100 elements by line"

Taxonomy list inside the query

Is it possible to get a list of the "terms of taxonomy" or "just used taxonomy types" defined within that archive without looking at all pages of an archive query in a loop?

What I mean is this:

Custom Taxonomy Types and their terms:

colors (red, green, orangge, yellow, pink) sizes (xs, sm, md, lg, xl) 

An archive an post_type:

posts found 100 per_page 10 

In this case, the posts in the archive may be matched to any term of any taxonomy type, or they may not contain any.

When we want to use these terms to filter, it is necessary to remove the terms that do not exist in the current archive query (100 posts).

To be more precise, considering that there are 1000s of posts and 1000s of terms, it will take up unnecessary space on the screen (negative user experience) and in fact no posts will appear when filtered.

The goal here is to get a list of term or just taxonomy types in the query with the query.

Is there a configurable setting for this? Or should a new SQL query be written? Please help me.

What happens when a Shapechanged Dragon enters an Antimagic Field inside a narrow space? [duplicate]

A rather simple question: if an Ancient Dragon uses it’s Shapechange ability to transform into a medium-sized humanoid, and then has that Shapechange disabled/dispelled inside a narrow tunnel / small underground room, will they get crushed to death by their own size? I have plans on True Poly-ing my spellcaster PC into a Dragon, and i’m worried that a random dispel would instakill me when i go dungeon-delving in the Abyss or somewhere.

How should rests be handled inside the Tomb of of the Nine Gods?

I’m running Tomb of Annihilation and my players have finally arrived at the Tomb of the Nine Gods. As they have been deciding when it is safe to take short rests, I’ve been rolling for random encounters, only to realize that there don’t seem to be random encounters inside the tomb.

This appears to give a lot of leeway to the DM regarding how often to allow short and long rests. A generous DM could allow a short rest after nearly every major encounter, while a sadistic DM could interrupt the party’s long rests, not let them recover spells and other long rest refreshing abilities, and maybe add levels of exhaustion to boot (for lack of sleep).

The only guidance I can find in the adventure is the following:

Arguably, it is always up to the DM how to manage rests, but many published modules use randomization as a way to balance between cakewalk and death trap. How should the be handled inside the Tomb of the Nine Gods?

What happens to a person who is scattered to the astral plane when inside of a destroyed bag of holding

When a bag of holding is destroyed, the contents are scattered in the astral plane. If a person is inside the bag, what happens to their body? According to the accepted answer here: “Will loot you find on the astral plane while using astral projection remain when you leave it?” – you don’t have a physical form in the astral plane. Is their body gone, forever? Or do they get a new body when they enter a physical plane?

Am I correct to assume, that an Echo Knight can’t use Manifest Echo, to create an echo on the inside of a spherical Wall of Force?

Here once more a classical Wall of Force blender question. I understand that spells can’t go through a spherical wall of force because of full cover, but does the same actually apply to class features like the echo knights: Manifest Echo?

You can use a bonus action to magically manifest an echo of yourself in an unoccupied space you can see within 15 feet of you.

If this is by RAW possible, I see that a DM would probably rule it differently I just want to know if there is an actual rule preventing this, also for the purposes of an Echo Knight potentially escapeing a Wall of Force or simmilar prison effects.