Will Skora
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Incorrect post type content is used on FSE frontpage templateAfter further troubleshooting, I believe it is a bug within the block editor itself and reported it on github issues. The link also has more information and a reduced test case (roles and capabilities of the custom post type do not affect the issue).
Forum: Fixing WordPress
In reply to: Unable to assign authorship to user with custom user roleThanks, this workaround (specifically i used https://wordpress.stackexchange.com/a/216117/48698) solves issue my although post author screen is done in the post type’s administration page; not within the post editor itself and isn’t ideal from a user experience perspective.
After I granted the user an additional role of author
author, the user already had the custom role (which I thought should have all of the capabilities))
this problem was resolved and the user was listed again in the post author box inside the post editor.I think the real cause is that the post-author box in gutenberg populates the
authors list by
retrieving the users with the ‘author’ role instead of retrieving users who have the capability of publish_posts for that particular post type.Forum: Fixing WordPress
In reply to: HTML Block problemsHi,
Thanks for reporting.
The option to turn off the automatic validation that is done in HTML blocks (this validation is done when the post is saved or published) has been reported and acknowledged in the Gutenberg bug tracker.
There is a 2nd issue in the Gutenberg issue tracker that describes how Gutenberg assumes that the HTML inside the block should be valid and will sometimes mark it as invalid if it has already been saved. https://github.com/WordPress/gutenberg/issues/15794
I figured it out through a tip to look at the Nested templates
Compared to my original code, I needed to nest the button block in an additional array.
I’ve included a working example below for the button block:
Determine which attributes for the block that you need and then define them as an array object as I did below.
array( 'core/buttons', array( 'contentJustification' => 'center', ), array( array( 'core/button', array( 'text' => 'your text', 'url' => 'https://ww.wp.xz.cn', 'className' => 'is-style-name-of-your-style-variation', ), ), ), ),- This reply was modified 5 years, 6 months ago by Will Skora.
Forum: Plugins
In reply to: [WP Hide Post] Plugin causes post/page editor crashNote that @dmchale’s solution does not work if you’re trying to recompile the code from their github repository (version 2.1.11)
Forum: Plugins
In reply to: [Open Graph and Twitter Card Tags] is_wpml_active creating a fatal errorI should add:
this error appeared while issuing
wp profile stage --fields=stage,time,cache_ratioin my console;
i’m running php 7.0.27
wordpress 4.9.2
2.2.3 of the plugin.One more thing to try is to
remove the old installer.php and zip file; make a new package with Duplicator; and then add this newly made installer.php and zip file to your designated directory and try again.I had the same symptom as nikanadv with no build errors in my package; the file was visible from accessing the URL in a browser (confirmed with chrome dev tools that the file was successfully opened); and no response from opening the installer.php in a browser.
I decided to make another package again by chance and it worked. Perhaps there’s some unreported error/bug in your installer.php that you’re trying to open?
- This reply was modified 9 years, 4 months ago by Will Skora.