charlenemasters
  • Member for 9 years, 5 months
  • Last seen more than a week ago
Custom widget using get_categories select menu dropdown
Accepted answer
5 votes

Ok I found a solution thanks to this: Using wp_dropdown_categories in widget options Here is the code I used instead: function form( $instance ) { /* Default Widget Settings */ $defaults = ...

View answer
Load stylesheet on custom admin submenu page
Accepted answer
1 votes

Ok, I figured it out: If it's a submenu page, the $hook looks like this: appearance_page_page-name instead of going by URL. So the complete code would be this: function my_function($hook) { if ( '...

View answer
Set post number to single posts
1 votes

Thanks @PieterGoosen and @Milo for the suggestion of doing everything back-end. Found an answer here and adjusted it to use get_posts and suit my needs. My final code is: function updateNumbers() { ...

View answer
Password-protected Posts lead to 404 Error
1 votes

Ok, figured it out myself! I had used add_filter to customize the password form in order to add css classes. Everything in add_filter was either old or simply wrong. I found it in a tutorial, but this ...

View answer