Curtiss Grymala
Forum Replies Created
-
Forum: Plugins
In reply to: [Post Content Shortcodes] how to show post comments too in the content?You should be able to use
show_comments=1
in the shortcode, but I haven’t really had an opportunity to test that feature too much (and it’s pretty heavily dependent on how your theme handles the comment list/form), so I can’t say for certain. If you’re still using the plugin, please let me know if that works. Thanks.Forum: Plugins
In reply to: [Post Content Shortcodes] Error Message using shortcodeIf you’re still using this plugin, would you mind downloading the latest development/test copy at https://github.com/cgrymala/post-content-shortcodes and let me know if it works (and if it fixes the issue you’re running into)? I’m just about ready to release that new version, but I’d like to test it more widely and make sure it’s fixing the issues people have raised in the past few months. Thanks.
Forum: Plugins
In reply to: [Timely All-in-One Events Calendar] subscribe to other calendars?I am looking into this as well. It does not appear that the imported feeds automatically refresh themselves (at least, ours hasn’t since we set it up a month ago).
Forum: Plugins
In reply to: [Post Content Shortcodes] Shortcode inside post is filtered outIt looks like this is a bug in the plugin. The
shortcodes
attribute should work with thepost-list
shortcode, but the code that makes it work withinpost-content
has a bug in it.I’ll look into this issue.
In the meantime, if you want to search for
if ( true !== $shortcodes ) {
within thepost_content
function, and replace it with the following, that should fix the issue (hopefully).if ( true !== $this->shortcode_atts['shortcodes'] ) {
Forum: Plugins
In reply to: [Timely All-in-One Events Calendar] [Core Version] Pantheon 404 Error@calvin and @aristotel_timely – this was an issue that has since been addressed by Bradley. Thank you.
Forum: Plugins
In reply to: [Network Username Restrictions Override] No longer works in WP multisite 4.4As unlikely as it sounds, @theinfinity is absolutely right.
Even though, without context, it seems like that’s a silly change to make, once you look at the plugin code, you’ll realize it makes perfect sense.
The problem is, the plugin uses the error message text to check to see which error was returned. In 4.4, it looks like that error message text changed, so the plugin’s test no longer passes.
Forum: Plugins
In reply to: [Debug Bar] User level code deprecated – is this an error?The
current_user_can()
function itself is not deprecated.The notice you’re receiving is because there’s a plugin/theme somewhere in your system that, instead of checking user capabilities with something like
current_user_can( 'manage_options' )
is using the numerical user levels, likecurrent_user_can( 7 )
.The numerical user levels were deprecated a long time ago, but some plugins/themes still use them.
https://codex.www.ads-software.com/Roles_and_Capabilities#User_Levels
Forum: Plugins
In reply to: [Post Content Shortcodes] use tags to find postsThere will be some new attributes coming in the next version that will allow you to filter according to any taxonomy (including tags).
Forum: Plugins
In reply to: [Post Content Shortcodes] HTML errorsCan you please share what shortcode/widget you’re using, and a link to the site on which you’re experiencing the issue? I can’t, off the top of my head, think of any reason this should be happening.
Forum: Plugins
In reply to: [Post Content Shortcodes] Limit the title Length and linked Feature Image?For the first request, if you’re using the
post-content
shortcode, you could hook into thepost-content-shortcodes-title
filter to limit the length of each title.If you’re using the
post-list
shortcode, it’s a little more difficult. You’d have to selectively hook into thethe_title
filter to trim the title length. I’m working on a new version that will fire an action at the start/end of each shortcode, so, once that new version is released, you could hook into those actions to add the filter tothe_title
and remove it once the shortcode is done being processed.Regarding your second request, the new version will also include a
link_image
attribute that will automatically wrap the thumbnail in a link if it’s set to true.Forum: Plugins
In reply to: [Post Content Shortcodes] Suppress Password Protected PostsI am working on a new version that will include an
ignore_protected
attribute that will allow you to leave password-protected posts out of the list.Theoretically, you should be able to use the
post-content-shortcodes-open-item
filter to accomplish this. The code might look something like:add_filter( 'post-content-shortcodes-open-item', 'my_pcs_add_cat_to_title', 10, 3 ); function my_pcs_add_cat_to_title( $output, $post_id, $atts ) { $cats = get_the_category( $post_id ); if ( empty( $cats ) || ! is_array( $cats ) ) return $output; $category = array_shift( $cats ); return $output . '[' . $category->name . '] '; }
Forum: Plugins
In reply to: [Post Content Shortcodes] Suggestion: Excerpt needs to be wrappedTheoretically, you should be able to use the
post-content-shortcodes-include-thumbnail
filter to wrap the excerpt separately from the image. It might look something like:add_filter( 'post-content-shortcodes-include-thumbnail', 'my_pcs_wrap_excerpt', 10, 3 ); function my_pcs_wrap_excerpt( $output, $thumb, $content ) { return $thumb . '<div class="pcs-excerpt-inner-wrapper">' . $content . '</div>'; }
Forum: Plugins
In reply to: [Post Content Shortcodes] How display only title?I believe you should just be able to use something like:
[post-list show_title=1]
Forum: Plugins
In reply to: [Post Content Shortcodes] Image link to page or postIn the upcoming version of the plugin, I will be adding a
link_image
attribute to the shortcode, which will wrap the thumbnail in a link if it’s set.