Sam Brodie
Forum Replies Created
-
Seems like it’s related to removing the slugdiv meta box:
https://github.com/Yoast/wordpress-seo/issues/4512
Once I commented out the following line, it saved fine:
remove_meta_box( 'slugdiv', $type, 'normal' );I’m having the same problem. Did you ever find a solution?
Forum: Plugins
In reply to: [Admin Page Framework] Permissions for Menu Page and FieldGot it to work – not sure what I was doing wrong before but your code works so thank you for posting. I also posted an issue on the tracker recommending more intuitive capability inheritance. Thanks again for a nicely made Admin Framework and great support.
Forum: Plugins
In reply to: [Admin Page Framework] Permissions for Menu Page and FieldI was not using sections. I tried it with a section and it still doesn’t work. Note that I can access these options with an admin user. Here is the code I put for the section:
$this->addSettingSections(
‘options_page’,
array(
‘section_id’ => ‘main’,
‘title’ => ”,
‘description’ => ”,
‘capability’ => ‘capability_x’
)
);And modified the fields:
$this->addSettingFields(
‘main’,
array (
‘field_id’ => ‘users’,
‘type’ => ‘checkbox’,
‘title’ => __( ‘Choices’, ‘plugin’ ),
‘description’ => __( ‘Choose one.’, ‘plugin’ ),
‘capability’ => ‘permission_x’,
‘label’ => array(
‘one’ => ‘One’
‘two’ => ‘Two’
)
),
);It seems that sections and fields just use the manage_options permission in the abstract class AdminPageFramework extends AdminPageFramework_Controller class definition because modifying the default value of $sCapability there does the trick.
Forum: Plugins
In reply to: [Admin Page Framework] Remove message in footer about memory usageAh, of course. Thanks.
Forum: Plugins
In reply to: [APC Object Cache Backend] stale cache sort of bugThanks for the reply, Harris. To use APCu, do you have to uninstall APC first? Or will installing APCu modify your APC installation?
Thanks again.
Forum: Plugins
In reply to: [APC Object Cache Backend] stale cache sort of bugI’m having the same problem. Have you figured out a fix for it yet?
Forum: Fixing WordPress
In reply to: updated to 3.6 and now have a header error@carlorizzante you’re the man!
Forum: Fixing WordPress
In reply to: Using Custom Taxonomy and Custom Fields InterchangeablyDoes anyone know another forum where I might be able to have this question answered?
Forum: Fixing WordPress
In reply to: Using Custom Taxonomy and Custom Fields InterchangeablyNo one can help me with this question?
Forum: Fixing WordPress
In reply to: Using Custom Taxonomy and Custom Fields InterchangeablyI think I’ve figured out how to restrict the price (with a BETWEEN clause), however I’m still wondering:
Does the fact that I am using a custom post type with custom taxonomies instead of a regular post with custom fields affect the way that I would have to use this code?
And if someone could explain to me where key3.post_ID comes from that would be great as well.
Thank you!
Forum: Fixing WordPress
In reply to: Retrieve Posts for Items within a certain price rangeThat definitely gave me a better idea. I think the full solution may just be over my head at this point though. I guess I’ll read and practice coding more and then try to tackle this once more.
Thanks for the response!