Scruffy Paws
  • Member for 8 years, 9 months
  • Last seen this week
2 answers
1 votes
449 views
Can I use a method from an existing plugin as an action hook?
4 votes

It sounds like you are looking for do_action() In your method that you wrote add do_action and it will trigger your new custom action. Then you can use add_action() in the same way you use the build ...

View answer
2 answers
1 votes
92 views
Widget - Store and update data
Accepted answer
2 votes

You probably want to look at using WordPress Transients as they can handle both the data and the timestamp/expiration. You can also check out The Deal with WordPress Transients by CSS Tricks which ...

View answer
1 answers
1 votes
49 views
WP authors page
2 votes

You can add the code below to your theme's function.php or in your own custom plugin... function custom_author_slug() { global $wp_rewrite; $new_slug = 'people'; $wp_rewrite->...

View answer
1 answers
-2 votes
142 views
How to make sure the letters 'pez' do not convert to a fish symbol?
2 votes

This does not happen out of the box in WordPress. I would recommend going through your plugins one by one and deactivate them to see which plugin is causing this. After that if it still persists, ...

View answer
1 answers
1 votes
2k views
How do I extend auto logout on idle OR redirect inline popup
Accepted answer
2 votes

In WordPress 3.6 they added the "heartbeat" to the admin area and one of the features is this authentication check. You can disable this admin auth popup by adding the following to your functions.php ...

View answer
2 answers
3 votes
2k views
Custom editor field displaying HTML in Visual editor
Accepted answer
2 votes

I found out I needed to add html_entity_decode() around the value so my final code is... /** * Add Copyright text to general settings menu */ $custom_general_settings = new ...

View answer
2 answers
0 votes
2k views
meta box on new admin page
1 votes

You can implement meta boxes on other non-post_type admin pages but you need to manually call do_meta_boxes() where you want them to output. You also need to make sure that add_meta_box() action is ...

View answer
1 answers
0 votes
27 views
Resources won't load if not logged to cPanel after migration, cause?
Accepted answer
1 votes

Looks like some of your assets are using http://localhost/... links instead of your domain which is why they aren't loading. These might be hardcoded in your theme or you may want to check your ...

View answer
1 answers
2 votes
748 views
BBpress error wp-init
0 votes

I was getting this error when I enabled the WebsiteDefender WordPress Security plugin Disabling/removing this plugin solved this issue for me. That plugin calls methods like acxUtil::...

View answer
14 answers
48 votes
35k views
Sort on meta value but include posts that don't have one
0 votes

I ended up getting around this with a bit of a hack (IMHO), but it did the job for me in my case. You can hook into the filters posts_join_paged and posts_orderby to update the join and order strings....

View answer