Change an option string to a function [closed]

To do something like that, you would most likely have to use eval() on the text provided … which is a really bad idea. You would be much better off providing a list of check boxes that have different values so the user can choose which items to show your sidebar on. For example: <input … Read more

query grandchildren taxonomy terms

Try to use child_of at your second foreach, see the documentation. child_of (integer) Get all descendents of this term. Default is 0. Note: the difference between child_of and parent is that where parent only gets direct children of the parent term (ie: 1 level down), child_of gets all descendants (as many levels as are available) … Read more

Open all PDF or docx link as iframe

You can use the plugin vanilla-pdf-embed. If the PDF is in your WordPress media library, it will be embedded with the default settings in all the posts where it is written. If isn’t in the media library then use the [pdf]…[/pdf] shorttag: [pdf]http://domain.com/2012-04/item-1335086631.pdf[/pdf]

How do I turn this form into a search form? [closed]

Please try this , <form name=”searchBox” action=”<?php echo get_bloginfo(‘url’); ?>” class=”search-form” method=”get” role=”search” > <input type=”text” name=”s” class=”searchBox” placeholder=”search” value=”<?= $_GET[‘s’] ?>” required /> <button type=”submit” class=”searchBtn” >search</button> </form>

Plugins not showing on dashboard?

I had the same problem the site I was developing was utilizing this plugin to show gallery on the homepage. The first few days the site was working well but when I launched a persistent white screen of death error developed. I used the FTP access to rename the plugin file to something like(old_plugins) in … Read more