Unexpected behavior when trying to manually install WordPress on macOS Sierra

Thanks to Jacob P. for pointing me in the right direction. The fix was simple once I saw that the site was not serving CSS resources. Since my site was indeed using https (and not http), simply changing the following in wp-config.php: define(‘WP_HOME’,’http://www.my.server.com‘); define(‘WP_SITEURL’,’http://www.my.server.com‘); To (note the https): define(‘WP_HOME’,’https://www.my.server.com’); define(‘WP_SITEURL’,’https://www.my.server.com’); solved the problem for me.

Meta Box clears saved field content

I found it, it was actually clearing when inputting apostrophe (‘) which conflicts in database save, to solve I used htmlentities() adn js replace to replace and save apostrophe with apostrophe code. <input onkeyup=”valid(this)” type=”text” name=”faq_2_title” style=”width:100%;” placeholder=”Tab Title” value=”‘. htmlentities($faq_2_title) . ‘”></input></h2> js: function valid(f) { f.value = f.value.replace(/’/g, ‘&#39’); }

How do I fix this error

That looks like an error in a plugin called “Slider”. You can test by disabling that plugin and seeing if the error re-occurs. Note that this is not the place for plugin error/support. You should use the plugin’s support forum.

I need to edit a widget, with no dashboard access

It’s a text widget, I think. If you need to modify title/content text then you need to modify in database (as you’ve no dashboard access*) If you need to change div structure for that widget, then you code in child theme. [*Note: if you got Database access then you can manage dashboard access too.]

ACF background-color per post in a WordPress loop

Well, your problem lies in your CSS code. .card-container .main-content:hover { background: <?php the_field(‘background-farbe’ ); ?>; background-blend-mode: multiply; } It uses class only, so it will be applied to every element with that class. Multiplying the same code with different colors won’t change anything – only one such rule will be active. So how to … Read more

Search only for posts with specific metadata?

Quick question…which case applies? If you just need a query for today’s date being between two pieces of metadata, I’d create a widget running a fairly straight forward WP_Query and outputting the posts. If you are asking for the user to input a date to search, I’d probably still use a widget but would use … Read more

Changable favicon

If you have a modern theme, where you can upload a favicon with the theme customizer (rather than a hardcoded url in the header.php), you can simply use a filter. Take a look at the function get_site_icon. As you can see it returns the url of the image that you have uploaded using the customizer. … Read more

Return function results within shortcode

This is correct (I just had file versioning issues): <?php function say_sup(){ return ‘sup’; } add_shortcode( ‘sup_shortcode’, ‘register_sup_shortcode’ ); function register_sup_shortcode( $atts, $content = null) { $sup = say_sup(); return $sup; } ?> This is not correct – and there would be little purpose in trying to make something like this work, if the above … Read more