Tag Info

Hot answers tagged

2

Ok, I solve this with the help of @TheDeadMedic's help. I use wordpress cookiepath constant and it works on wordpress perfectly. Here is the jquery code: jQuery(document).ready(function () { // baking cookie ;p function set_cookie(ID) { document.cookie = ID + "=opened; path=<?php echo COOKIEPATH ...


1

Welcome to stackexchange. When asking a question please try to be as specific in your question as possible. Try describing what you want to know – also using screenshots or wireframes is ok – but please avoid forcing others to ckick on a link to understand your question. Questions like "How can I do this?" are usually not very likely to get a lot of ...


1

Ok, so the problem was that I was adding the variable outside the function. After some cleanup, code looks like this and it works! function roots_setup() { // Variables $header_type = get_field('header_type','options'); if (($header_type)=='brand-centered') { register_nav_menus(array( 'brand_centered_left' => __('Brand Centered Navigation (Left)', ...


1

There's a much simplier (and more secure way*) way than hiding the user interface (show_ui=false) and adding a custom metabox to only display terms. If you remove the capability of the user to manage terms, however, not only do you have a secure solution, but user interface takes care of itself. As part of the register_taxonomy() you can specify the ...



Only top voted, non community-wiki answers of a minimum length are eligible