Gabriel Harper
Forum Replies Created
-
Forum: Plugins
In reply to: [Classic Menu Block] Using custom nav-walkerYou would have to override the block render callback with register_block_type and implement your own version of render_block_classic_menu(). From there you can extend Walker_Nav_Menu with your own class and pass it into wp_nav_menu in your render callback.
Should all be doable from your theme though.
I got frustrated with the limited block navigation and have been implementing my own version of a classic menu block plugin with a custom walker and mobile menu support. You could probably accomplish most of what you’re looking for with the method I outlined above – I just went for a custom plugin so I could add support for render templates with custom walkers in the theme and a separate menu toggle block.
Forum: Plugins
In reply to: Visual Form Builder Pro Entries Not ShowingYes, also affecting other files. Quick bug fix:
Apply the following patch to the following files found in plugins/visual-form-builder-pro/includes:
- class-analytics.php
- class-entries-detail.php
- class-entries-list.php
- class-email-designer.php
- class-forms-list.php
- class-forms-order.php
- class-widget.php
Find:
function __construct(){
Replace with:
var $field_table_name, $form_table_name, $entries_table_name; function __construct(){
Forum: Hacks
In reply to: Need some help with add_rewrite_rule !I have had so many problems with add_rewrite_rule when implementing custom code/plugins I just started parsing the URL and taking over with template_redirect:
https://gabrielharper.com/blog/2012/09/wordpress-custom-urls-for-plugins/
Anyone else who’s read five million posts about custom URLs might find it useful.. good luck ??
Forum: Hacks
In reply to: Help with add_rewrite_rule()For custom plugins where you’re taking over the interface, I’ve had so many issues with the built-in rewrites I just baked my own:
https://gabrielharper.com/blog/2012/09/wordpress-custom-urls-for-plugins/
I don’t know if this is any help but it’s SO much simpler. Would love to hear about any improvements or potential problems using this method….
Forum: Plugins
In reply to: [W4 Post List] [Plugin: W4 post list] Admin Menu Position ConflictI’ve made a point of using decimals for all menu positioning with add_menu_page because conflicts are bound to happen:
https://gabrielharper.com/blog/2012/08/wordpress-admin-menu-positioning-conflicts/
Might be worth considering for your plugin because there could very well be conflicts with many other plugins.
Forum: Fixing WordPress
In reply to: Seo Scripts Pro IntegrationJust stumbled across this post.
There’s a new tutorial on integrating SEO Scripts with WordPress:
https://www.scriptalicious.com/blog/2011/07/wordpress-integration-for-seo-scripts/
There’s also a pro WordPress integration that can be ordered:
https://www.scriptalicious.com/services/wordpress-integration/
Hope that helps!