## only last option from theme options is being saved to the DB

I have this admin page functions where I am trying to prompt the admin for some text data.

the problem that is only the last field is being saved and existed ain the DB, the top ones do not exist in the DB at all.

`` register_setting( 'top-data-group', 'yourLogo');  register_setting( 'card1-group', 'card1_text');  register_setting( 'card4-group', 'card4_text');     add_settings_section('top-options', 'Top Information', 'top_options', 'top-data' );   add_settings_section('card1', 'Card 1', 'card1_options', 'top-data' );   add_settings_section('card4', 'Card 4', 'top_options', 'top-data' );    add_settings_field('yourLogo', 'Logo Image URL:', 'yourLogoImage_callback', 'top-data', 'top-options'  );  add_settings_field('card1_text', 'card 1 text:', 'card1_text_callback', 'top-data', 'card1'  );  add_settings_field('card4_text', 'card 4 text:', 'card4_text_callback', 'top-data', 'card4'  ); ``

callback functions:

`` function card1_text_callback (){     \$  preText =  esc_attr( get_option('card1_text'));      echo ' <input type="text" name="card1_text" placeholder="card text" size="50" value="'.\$  preText. '" > ';  }   function card4_text_callback (){     \$  preText =  esc_attr( get_option('card4_text'));      echo ' <input type="text" name="card4_text" placeholder="card text" size="50" value="'.\$  preText. '" > ';  }  function yourLogoImage_callback (){     \$  preText =  esc_attr( get_option('yourLogoImage'));      echo ' <input type="text" name="yourLogoImage" placeholder="your Logo Image URL" size="50" value="'.\$  preText. '" > <p> use external or internal image url , preferred (300 * 50 px) </p>'   ;  } ``

the form page:

``<h1> Top Section </h1> <?php settings_errors(); ?>   <form action="options.php" method="post" >       <?php        settings_fields('top-data-group');     do_settings_sections('top-data');      settings_fields('card1-group');     do_settings_sections('card1');      settings_fields('card4-group');     do_settings_sections('card4');      submit_button('save', 'primary sub-button', 'submit', true);    ?> </form> ``

only last option is being saved to the db, top ones are all empty.

## In Eberron: Rising from the Last War, can Warforged become exhausted if they decide not to take a long rest?

In “Eberron: Rising from the Last War” under “Constructed Resilience”, it states the following as a bonus:

You don’t need to sleep, and magic can’t put you to sleep.

and it goes on to say

Sentry’s Rest. When you take a Long Rest, you must spend at least six hours in an inactive, motionless state, rather than sleeping. In this state, you appear inert, but it doesn’t render you Unconscious, and you can see and hear as normal.

Now, what I’ve noticed that has changed from “Wayfinder’s Guide to Eberron” it read

Warforged Resilience … You don’t need to sleep and don’t suffer the effects of exhaustion due to lack of rest, and magic can’t put you to sleep.”

So, in this approved version of warforged, if this living construct refused to take a long rest, would it suffer exhaustion that a normal humanoid of the flesh would likely take, or would it be safe from this kind of treatment?

## Does Leomund’s Secret Chest last only 60 days reliably, or can this timer be reset?

Leomund’s secret chest is a spell that lets the caster hide a very expensive chest in the Ethereal Plane. However, its drawback is that after 60 days, there is a chance the spell ends. If the spell ends while the chest is in the Ethereal Plane, it’s lost forever.

My question is, where does the 60 day counter start? Is it from the moment of casting, so that you need to re-cast the spell every 60 days? Or do you just need to recall the chest every 60 days to check on its contents?

## CFG to CNF, but stuck on the last few steps

I recently learned about the conversion, but I seem to be stuck.

I need to convert the following CFG to CNF:

$$S → XY$$

$$X → abb|aXb|e$$

$$Y → c|cY$$

1. There is no S on the right side, so I did not need to add another
2. I removed the null productions $$X → e$$

$$S→XY|Y$$

$$X→abb|aXb|ab|$$

$$Y→c|cY|$$

1. I removed unit production $$S→Y$$ $$Y→c$$ with $$S→c$$

2. There are no production rules which have more than 2 variables

3. Here, I struggle. I am not allowed to have a terminal symbol and a variable together, but I am not sure how to get rid of these.

New grammar after step 4:

$$S→XY|c$$

$$X→abb|aXb|ab$$

$$Y→ZY$$

$$Z→c$$

I managed to replace the symbol c with Z, and added the new rule, so that seems fixed. However, I am unsure what do do with $$aXb$$.

Is this okay so far? if yes, what step should i take next?

## Does Beacon of Hope cast during the last minute of a short rest maximize the healing received from rolling hit dice?

The spell Beacon of Hope lasts for one minute and states:

For the duration, each target … regains the maximum number of hit points possible from any healing.

If a party is taking a short rest, can the party Cleric cast this spell during the last minute of the rest to ensure that the party regains the maximum possible hit points on their hit dice rolls?

If casting the spell interrupts the rest for the Cleric, can they still use Beacon of Hope to maximize the hit dice healing for the rest of the party?

## MySQL / MariaDB Get last 7 days summarized and with avarages calculated

currently, I have this table:

``CREATE TABLE `plant_data` (     `id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,     `plant_id` BIGINT(20) UNSIGNED NOT NULL,     `temperature` DECIMAL(5,1) UNSIGNED NOT NULL,     `light` SMALLINT(5) UNSIGNED NOT NULL,     `created_at` TIMESTAMP NULL DEFAULT NULL,     `updated_at` TIMESTAMP NULL DEFAULT NULL,     PRIMARY KEY (`id`), ) ``

with the following example data:

``INSERT INTO `plant_data` (`id`, `plant_id`, `temperature`, `light`, `created_at`, `updated_at`) VALUES (1623, 14, 22.2, 35, '2020-02-16 09:00:06', '2020-02-16 09:00:06'); INSERT INTO `plant_data` (`id`, `plant_id`, `temperature`, `light`, `created_at`, `updated_at`) VALUES (1622, 5, 22.8, 33, '2020-02-16 09:00:06', '2020-02-16 09:00:06'); INSERT INTO `plant_data` (`id`, `plant_id`, `temperature`, `light`, `created_at`, `updated_at`) VALUES (1621, 14, 22.8, 36, '2020-02-16 08:00:07', '2020-02-16 08:00:07'); INSERT INTO `plant_data` (`id`, `plant_id`, `temperature`, `light`, `created_at`, `updated_at`) VALUES (1620, 5, 23.3, 33, '2020-02-16 08:00:07', '2020-02-16 08:00:07'); INSERT INTO `plant_data` (`id`, `plant_id`, `temperature`, `light`, `created_at`, `updated_at`) VALUES (1619, 14, 23.1, 36, '2020-02-15 07:00:11', '2020-02-15 07:00:11'); INSERT INTO `plant_data` (`id`, `plant_id`, `temperature`, `light`, `created_at`, `updated_at`) VALUES (1618, 5, 23.8, 34, '2020-02-15 07:00:11', '2020-02-15 07:00:11'); INSERT INTO `plant_data` (`id`, `plant_id`, `temperature`, `light`, `created_at`, `updated_at`) VALUES (1617, 14, 24.4, 38, '2020-02-15 06:00:09', '2020-02-15 06:00:09'); INSERT INTO `plant_data` (`id`, `plant_id`, `temperature`, `light`, `created_at`, `updated_at`) VALUES (1616, 5, 24.6, 34, '2020-02-15 06:00:09', '2020-02-15 06:00:09'); ``

I want to get the average values of the last X days as one row for each day. I could do it with X querys for each day like

``SELECT plant_id, avg(temperature) FROM plant_data WHERE created_at >= '2020-02-16 00:00:00' AND created_at <= '2020-02-17 00:00:00' GROUP BY plant_id; ``

But I want to know, if it is possible to get the data with one query to get a result like this:

``+----------+------------------+------------+ | plant_id | avg(temperature) | day        | +----------+------------------+------------+ |        5 |         24.58000 | 2020-02-16 | |       14 |         24.42000 | 2020-02-16 | |        5 |         23.58000 | 2020-02-15 | |       14 |         23.42000 | 2020-02-15 | +----------+------------------+------------+ ``

Would be nice if someone has a good idea for doing this to save me query time.

## Static Page “Last Post” display all post

I’ve got a very hard issue with a blog (a two years setup) in 4.8.12 (many plugin was install and uninstall…)

My static page display all post;

I have correctly setup settings – reading with 10 posts

T have try the custom post limits

But nothing works, certainly a variable in the table option in mysql override this param

Have you got an idea about ?

I have try to upgrade the version of wordpress in 5.3.2 but it still not work.

With a fresh install, it works fine.

## How to find which last line executed in wordpress?

I got one of the sourcecode that having an issue with woocommerce comment.

After wordpress comment it displays

``Array (     [rating] => 1     [comment] => Something happen     [_mc4wp_subscribe_wp-comment-form] => 0     [submit] => Submit     [comment_post_ID] => 5766     [comment_parent] => 0     [_wp_unfiltered_html_comment] => 6cad68cfe4     [tk_ai] => woo:fQT1Kp63vjn1m3908bWKKL+e     [wp-settings-1] => libraryContent=browse&editor=tinymce&align=right&urlbutton=none     [wp-settings-time-1] => 1579699523     [wordpress_cf_adm_use_adm] => 1     [woocommerce_cart_hash] => 2a099b85c27ff9faf670aeec97ec3700     [wp_woocommerce_session_d414f731f41a558e7be1db06ea7e16cf] => 1||1579872362||1579868762||0e8353ac6d791caa28508ee018d9cd50     [scroll] => null     [wmc_current_currency] => GBP     [wmc_current_currency_old] => GBP ) ﻿  ``

and nothing else i have found print_r() in whole project pre_comment hook but not found where this print_r used.

I want to get last line where the die has been executed. or method to find that where this print_r() comes from.

## In Out of the Abyss, characters are supposed to be level 15 by the last chapter; how can I get them there via milestone levelling?

I’m still running Out of the Abyss, and we’re currently half way through Chapter 9: Mantol-Derith. The party is level 9 now (awarded as we transitioned between Chapter 8 and Chapter 9).

As we started Chapter 6: Blingdenstone, we decided to start using milestone levelling rather than tracking XP as we had been doing up until that point (DMG, pg. 261):

You can do away with experience points entirely and control the rate of character advancement. Advance characters based on how many sessions they play, or when they accomplish significant story goals in the campaign. In either case, you tell the players when their characters gain a level.

This method of level advancement can be particularly helpful if your campaign doesn’t include much combat, or includes so much combat that tracking XP becomes tiresome.

This last point about tracking XP becoming tiresome is pretty much why I suggested the switch to this method. It’s worked well so far, since interesting significant story moments have made it feel well paced, and there have been enough random encounters as we travel between locations in the Underdark (in addition to the “story combat”) that the levels feel earned.

However, planning ahead, I want to make sure that the levels are awarded at the right pace so that it doesn’t feel rushed, but at the same time making sure that enough has happened so that it continues to feel earned. Personally, I don’t feel like enough is happening in Mantol-Derith to justify jumping up to level 10 at the end of that chapter, for example.

Also, although the players like roleplaying and love meeting the various characters of this adventure, they’re not too interested in the factions like the Harpers and all that, so they were kinda glossed over during Chapter 8, so although roleplaying experience can still contribute to these levels feeling earned, I can’t just have huge lengthy faction arguments to justify it because my players won’t really engage with that.

The PCs should be level 15 for the last chapter of the adventure, as suggested by OotA, pg. 217, which implies such by saying:

As well as being more explicit about it on pg. 143:

So, level 15 by Chapter 17, and before that, level 14 by Chapter 16. However, I can’t find anything more explicit about the levels in between, which means it’s up to me to judge that.

So, currently they are level 9 as we play Chapter 9, and they’ve got to reach level 14 by Chapter 16. There are more remaining chapters here than levels, so simply handing out a level at the end of each chapter won’t work.

I am hoping that this will still fall under the heading of “Good Subjective” if I word it in this way: For those who have experience running/playing in OotA, what levels were the party during each chapter or significant story moment during these chapters (10-15)?

## Which nations did the Warforged fight for in the Last War on Eberron?

I’m currently creating a Warforged character for a one-shot, so I need to decide who he/she/it fought for in the Last War (Warforged were created as weapons, so each of them must have fought for or at least been owned by someone). However, the lore is not entirely clear on the matter of who employed Warforged, as far as I can tell.

The sourcebook Eberron: Rising from the Last War states on page 12, under the “Dragonmarked Power” heading (emphasis mine):

The dragonmarked houses remained neutral in the war and made considerable profit selling their services to all sides. War drives innovation; House Cannith developed many new weapons during the war, including the warforged.

This seems to strongly imply that Warforged fought on all sides. As far as I can tell, however, it’s never explicitly stated.

Is there any explicit lore, whether in E:RftLW, WGtE or previous editions, that supports that assumption that the Warforged were employed by all nations?