In admin.js you have a script to “fix” thickbox. It looks like you aren’t checking to make sure tb_position is actually a function. This causes the script to break on certain pages like the acf custom fields edit group screen.
Replace line 5 with:
if(typeof(tb_position) == "function"){
var tb_position_old = tb_position;
}
Or something similar, I used the above to fix it myself.
Thanks!
]]>New widgets don’t show after deleting plugin and current widgets show even if deleted, enabling accessibility mode works but this is good temporarily
Please help me fix this
Thanks
I think you spelled speciel wrong.
]]>unfortunately not working with WP 3.8 or higher…
]]>Why it doesn’t working when I am on subpage with posts? (blog page)?
]]>…apparently the new WP3.8 crashed the plug-in. …I’m keeping testing.
]]>Hi I activate your plugin,
try to use it and after saving a widget I get this errors:
“Notice: Undefined offset: 0 in ….wp-includes/capabilities.php on line 1075
Warning: Cannot modify header information – headers already sent by (output started at …/wp-includes/capabilities.php:1075) in …./wp-admin/post.php on line 222
Warning: Cannot modify header information – headers already sent by (output started at …/wp-includes/capabilities.php:1075) in …/wp-includes/pluggable.php on line 899
]]>I like this plugin but at the present time I am reviewing several different themes to determine the best fit for a site I’m working on. What I have found is when I change themes the widgets I created for each page get lost. I don’t see any pattern with it either. I would think if they for lost that the default widget would survive but in some cases that was not so. Am I doing something wrong or is there a persistence problem with this plugin? I am using version 0.0.7 of this plugin.
]]>Hi, i have problem with this widget. in fact that is a supper widget there is a big problem….Example:
i have 20 pages, i have put different details on each page sidebar, but from unknown reasons this widget reset “text” widget on almost all pages. Why? this happend 5 times now … when i want to add a page from moment to moment this widget delete all my other widgets. i dont know why and if you could help me. i think i know what is the problem.. one of them.
i am romanian and we are using diacritics ( ?,?,?,?) etc. and reset when i`m writing a page with that caracters. but this happend just twice of 5 times ?? help me please and tell me what to do for not reset anymore
]]>When editing an attachment page this plugin created a javascript error.
To fix this i moved i123_widgets_admin_init() call to i123_widgets_custom_fields_controllbox function.
]]>Lately I have been having problems with not being able to scale/resize images using the Edit Image dialog in the Media Library. When I went through and started deactivating plugins Per Page Widgets appears to be the culprit. Any thoughts?
]]>if you edit the main plugin file i123_per_page_widgets.php line 196
Change the function i123_widgets_custom_fields_add() as below and the widgets chooser will show up in your custom post types as well.
[ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]
function i123_widgets_custom_fields_add() {
i123_widgets_admin_init();
add_meta_box( 'i123_widgets_custom_fields', __('Per Page Widgets', 'i123_widgets'), 'i123_widgets_custom_fields_controllbox', 'post', 'side', 'high' );
add_meta_box( 'i123_widgets_custom_fields', __('Per Page Widgets', 'i123_widgets'), 'i123_widgets_custom_fields_controllbox', 'page', 'side', 'high' );
$args=array(
'public' => true,
'_builtin' => false
);
$operator = "and"; //'and or 'or'
$output = "names"; //names or objects - names is default
$post_types = get_post_types($args,$output,$operator);
foreach($post_types as $post_type) {
add_meta_box( 'i123_widgets_custom_fields', __('Per Page Widgets', 'i123_widgets'), 'i123_widgets_custom_fields_controllbox', $post_type, 'side', 'high' );
}
}
]]>
Hello. I am using the Custom Community theme and tested this plugin on a test site for compatibility. It seemed to work just fine. Unfortunately, once I used it on my live site it began to remove the right sidebar from all pages I used it on. Even after disabling the plugin and then deleting it, my right sidebars won’t show on ANY new pages.
Please someone tell me which files I need to replace with backup files to repair this damage?
]]>First, thank you for this great plugin
Can You add this ability to the plugin:
Show the ability to choose plugins also on category backend (not only pages).
Thanks,
Nir
]]>Hi,
Not really a support request but more some code that can be used to enhance the plugin
add the following function
function return_template_sidebars() {
global $post;
$sidebarsArr = array();
$template = file_get_contents( get_template_directory() . DIRECTORY_SEPARATOR . $post->page_template );
if ( $template != false ) {
preg_match( '|Sidebars:(.*)$|mi', $template, $matches );
if (!empty($matches[1])) {
$tempArr = explode(",", $matches[1]);
}
foreach ($tempArr as $temp) {
$sidebarsArr[] = trim($temp);
}
}
return $sidebarsArr;
}
Then modify i123_widgets_custom_fields_controllbox by adding
$sidebarsArray = return_template_sidebars();
just before
foreach($wp_registered_sidebars as $key => $value) {
and
if (!in_array($value['id'], $sidebarsArray, false)) continue;
just before
<div class="i123_widgets_formline">
This then allows you to add
* Sidebars: sidebar-1, sidebar-2
into your template files which means you limit the sidebars shown based on the template being used to display the page.
It needs a little more code writing so that it will pick up default templates but the basics are there
]]>