Tag Info

New answers tagged

0

Yet another reason this could be is that the "Edit" button in the front end of a post, is using a cdn's domain (caching the links but also switching the domains, causing cookie confusion and thus logging you out) rather than your own site. Some hosting providers offer link caching that intercept these admin links as well. You can test it by copying the ...


-2

use this code for solving your problem. <?php $args = array( 'orderby' =>'name', 'texonomy' =>'category', 'child_of' =>0, 'parent' =>0 ); $cats = get_categories($args); foreach ($cats as $cat) { echo $cat->name; $arg = array('orderby' => 'name', ...


0

EDIT: On a post page, the categories are already seen in hierarchical manner but with checkboxes. So, I have assumed that you have to show list of all the categories/subcategories somewhere in the admin panel in following format. Category 1 Sub-Category 1.1 Sub-Category 1.2 Category 2 So, presentation is upto you, I have just given logic to pull ...


0

I have manage that this way and it seems it's gonna work. I have just use again the scripts that I have used for theme to save some memory on server. /* * Bootstrap Styles and scripts */ wp_register_style( 'bootstrap.min', 'http://domain.cz/wp-content/themes/theme-name/css/bootstrap.min.css' ); wp_enqueue_style('bootstrap.min'); //Bootstrap Scripts ...


0

I advice you to read these topics: http://code.tutsplus.com/tutorials/the-complete-guide-to-the-wordpress-settings-api-part-5-tabbed-navigation-for-your-settings-page--wp-24971 Here you can find complete guide making options page with tabbed content. Or you can just copy the html of the tabbed page that you've liked, and use it on your own options page. ...


0

Local development is an option, as others have pointed out. However, I personally prefer working online, so that I can immediately test real use cases. If your budget permits, you can set up a staging domain name. Here you can build the site as if you intended it to be live on that address. Using a combination of WordPress' privacy settings and a robots.txt ...


0

Of course you can. First you need to install a local server. Here are some choices: Wamp Xampp VVV USB Web Server Cloud9 After you create your website all you have to do is to transfer it to your new domain name. There are numerous backup plugins that can do the job. Here is an article that cover some of them. Of course you can migrate it yourself. Here ...


0

1) You can create an account on AddThis. There's a Wordpress plugin for Addthis. 2) You can go to wordpress's plugins page and make a search for: "share", "social" or other words. There are plenty of plugins that you can use. Try for example this search. EDIT 3) You need to create custom fields. Search on wordpress.org/plugins for a module called ...


0

So as the first option was loading wired i have come to a better solution. what we will do in this case is to create a new menu item, put it in first position, give a custom class, needed to add cutom css style for that item. For this we will: create a function to add new menu item create a function to load custom stylesheet to admin panel and create the ...


0

Try this: <div class="my-metabox"> <!-- This is your metabox HTML --> <-- Add this button somewhere: --> <button id="my-submit" class="button button-primary button-large">Submit</button> </div> Add this JavaScript snippet however you want only to this screen (either by checking the post type and enqueue ...


2

I hate answering my own question, but hopefully this can help someone else with similar issues: Wordpress uses Iris color picker. http://automattic.github.io/Iris/# Wordpress also creates a jquery widget with default settings for Iris. The file can be found under wp-admin/js/color-picker.js At first I was trying to pass values directly to iris(), which ...


0

The best solution I found was a small library. https://github.com/CalderaWP/dismissible_notice It is backward compatible till WordPress 3.8.


0

To remove the title completely from all the forms: function tml_title( $title, $action ) { $title = ''; return $title; } add_filter( 'tml_title', 'tml_title', 11, 2 );



Top 50 recent answers are included