Forum Replies Created

Viewing 15 replies - 1 through 15 (of 121 total)
  • Thread Starter OsakaWebbie

    (@osakawebbie)

    You can create a ticket, you know.

    No, I didn’t know. I will create a ticket – thanks for pointing it out.

    The developers don’t read this forum…

    In that case, with a name like “Requests and Feedback”, what is this forum’s purpose, or who does read it? (It’s my first time posting here.)

    OsakaWebbie

    (@osakawebbie)

    I have a site running 5.7 with this plugin, and it still works fine for what I’m using it for. Perhaps there is another difference between your site and mine – the most likely difference I can imagine is that you’re using CSS for a different part of the admin interface than I am (or possibly that you have a conflict with another plugin I don’t have). I’m happy to compare site details if that would help you. For starters, I’m only using it for one purpose: to force the Media Gallery’s grid view to show the whole image instead of cropping to square. (Details) That is still working in 5.7.

    [I came to this forum for a different reason, but this thread caught my eye. I was looking for a way to let Scott know that the plugin is mysteriously invisible in “Add Plugins” – I wanted to add it to another site, but I’ll have to download the ZIP and install it that way. I’m sure he’d want it to appear in the list, so I thought I’d let him know.]

    Thread Starter OsakaWebbie

    (@osakawebbie)

    Thanks for finding those references. I knew I couldn’t be the only one who had noticed it, but my searches had come up dry, not using the right terms, I guess.

    Thread Starter OsakaWebbie

    (@osakawebbie)

    I had already reviewed that Master List before posting. I thought others would simply take a look on their own sites, but apparently I need to do more demonstration on mine first.

    So at your request, I went through an even more thorough test, including steps I know are unrelated to the edit page. Using a site that doesn’t get much traffic, is relatively simple, and was still on 5.5.3, I switched to the TwentyTwenty theme and deactivated all plugins. I took a screenshot of the Add New Post page, then upgraded to 5.6 and took another screenshot. Those two screenshots can be found here: https://imgur.com/a/J3OAsyc

    The difference should be quite clear. 5.6 has divs .interface-interface-skeleton__editor and .interface-interface-skeleton__footer, and they overlap. On the other hand, 5.5.3 has .interface-interface-skeleton__body and .interface-interface-skeleton__footer, and they don’t overlap. I also found an old site still on 5.4.4, and it looks similar to 5.5.3. I checked in both Firefox (which I normally use) and Chrome – I saw the same overlapping in both. I tried playing with the CSS in Dev Tools a bit, but I couldn’t figure out what to change to get the divs in 5.6 to stop overlapping, and I’m not that good at CSS. I’ll let the developers figure that out.

    • This reply was modified 4 months, 3 weeks ago by OsakaWebbie.

    LOL, Sapphire – I know what you mean! I’m really trying to do things in the native way, so that non-programmers will be able to maintain the content, but Gutenberg is not making it easy.

    I too need indented paragraphs and various other things that used to be easy in the classic editor, and I know we are not alone.

    Thread Starter OsakaWebbie

    (@osakawebbie)

    Never mind. I need to always remember to try a reboot – it heals many wounds! I have no idea why rebooting would fix an odd problem like this that seemed so dependent on the status of the website, but perhaps I was on the hairy edge of running out of memory or something – I don’t know. A day wasted…

    Thread Starter OsakaWebbie

    (@osakawebbie)

    Thanks. But that appears to require deep knowledge of the inner workings of WordPress functions – I would have no idea what code to include. (I do speak PHP, but I know very little about WP functions and hooks.) In total, I need it to appear on:

    • one page (https://japanharvest.org/style-guide, id=1813)
    • all single post views for CPT “Guideline”
    • when search results of that CPT are shown as a result of Ivory Search, which seems to be when the URL contains &id=5515. (I assumed the other parameter in the URL, &post_type=guideline, was designating the CPT, but apparently not – it’s the ID bit that matters!)

    It’s really weird that if I enable Visibility -> Misc -> Search, the widget won’t show when &id=5515 is in the URL, even though it shows for any other search result.

    Thread Starter OsakaWebbie

    (@osakawebbie)

    Thanks, Joy. I’ll check out the inline image icon the next time I need to do that. But that’s a side topic to my main question here. In this particular case I was fine-tuning code that I include in a block template, so the basic image inclusion had already been done.

    Does the Classic block act differently in terms of syntax checks? I don’t know what triggers the check (I originally thought it was switching focus, but now I’m thinking it’s more likely to be happening when the post is autosaved), but my issue is that WP should not prevent me from simply continuing to edit the raw HTML I’m working on. Or is the Custom HTML block more “hands off”?

    And what causes the second error I encountered? The first one (“This block contains unexpected or invalid conteny”) has happened to me many times, but the second one (“This block has encountered an error and cannot be previewed”) was a new experience.

    I hesitate to post on Github until I understand better what is happening and what I can or can’t do about it in my own workflow under the current code. If I’m going to sound like an ignorant doofus, I’d rather do that here. 😉 But once I have more clarity about what WP is doing and a solid suggestion about what it should do, I’ll post there.

    I frequently run into the same scenario as @graftedin – I will be working on an edit to the HTML code, switch to a different tab or window to look up something, and when I switch back I can’t resume working on the code! If it wants to warn me at the time I try to save the post, fine. But don’t touch anything while I’m in the middle of working in “Edit as HTML” and haven’t even moved to another block, let alone tried to save the post.

    Thread Starter OsakaWebbie

    (@osakawebbie)

    I know the rules – I wasn’t trying to ask for theme support. The reason I posted here is that although the graphic is from the theme, I had the impression that the identification of a link as external was being done at a more basic level in WordPress. But I did more extensive testing, and it does appear that even the detection of the link as being external (e.g. that it opens in a new tab even if “Open in a new tab” is not checked) is done by the theme, so I’ll ask about it there – sorry to have bothered you.

    Thread Starter OsakaWebbie

    (@osakawebbie)

    I’ve dug into your plugin, and I think I see the issue. The orderby parameter of WP_Term_Query() would need an additional option called something like “recent_use” that would include MAX(wp_posts.post_date) in the query and then order by it. It no doubt already does a JOIN & GROUP BY with the wp_posts table in order to know the number of posts that use each term, so it shouldn’t be hard for the devs to add the max date. But I shudder to think how long it takes from when one lowly user suggests something until it appears in a new version of WP.

    For this particular site, I have a different idea of how to mitigate having a lot of terms that might not depend on changes to core. The terms fall into three broad types, so I could change the taxonomy to hierarchical and use a parent term to categorize them. Then I’d make three instances of your widget filtering by parent, and hopefully find a way to show only one at a time – I envision tabs or an accordion, although so far I haven’t found any tab or accordion widget that will accept another widget as its contents. If you know of anything in that vein, let me know.

    Thread Starter OsakaWebbie

    (@osakawebbie)

    Thanks. Are you saying that you would need something added to core in order to add that functionality to your plugin? If so, I don’t know what to ask for in core trac. The only core widget that lists taxonomies like yours, the Categories widget, doesn’t have any ordering options at all, so you’re probably not basing your widget on that.

    You suggested that I create my own solution (presumably you mean fork your plugin for my personal use). But my PHP background is in writing old-school raw code (including raw SQL queries) – adding a join/group-by/order-by would be simple if I had direct access to the SQL, but I have no idea how to do it through WordPress calls. If you, who are already familiar with WP development, are not just jumping in and doing it in your plugin, I assume it would be challenging or impossible for me to try.

    Thread Starter OsakaWebbie

    (@osakawebbie)

    Thanks for the reply. Note that there are two items in that example:

    • Genre: You’re right – now that I look at the file with VLC I see that the metadata says the genre is Blues. I’ll check my software (two different Adobe apps depending on the situation) to see how to stop them from assigning a genre.
    • Filename: That’s not from metadata – in this recent example, I renamed the file after it was created, and the description had the new filename in quotes. So there is no way I can use metadata to stop it from happening.

    In Media Library, since the filename is already reflected in the title, it seems silly to also repeat it in the description. So I would prefer that the description be simply empty by default – can the prefilling be disabled?

    Thread Starter OsakaWebbie

    (@osakawebbie)

    I found a solution or at least workaround. This article was very helpful: https://kau-boys.com/2047/wordpress/translate-customizer-options-with-polylang

    In Hueman Pro the relevant code in footer.php is this:

    echo apply_filters('hu_parse_template_tags', wp_kses_post( hu_get_option( 'copyright' ) ) );

    So I changed it to this:

    echo apply_filters('hu_parse_template_tags', wp_kses_post( function_exists('pll__') ? pll__(hu_get_option('copyright')) : hu_get_option('copyright') ) );

    The Kau-Boys article didn’t mention using using the function_exists conditional, but I didn’t want my site to break if Polylang is in a deactivated state.

    Then in functions.php I added this per the instructional page:

    if ( function_exists( 'pll_register_string' ) ) :
      function hueman_pro_child_pll_register_string() {
        pll_register_string( 'copyright_text', hu_get_option( 'copyright' ) , 'hueman-pro-child', true );
      }
      add_action( 'after_setup_theme', 'hueman_pro_child_pll_register_string' );
    endif;

    At that point the contents appeared in Polylang’s String Translation and I was able to write the translation.

    Because it’s a Polylang-specific function call, I guess I can’t really ask the theme developers to include it in the parent theme – presumably they would have to include the equivalent for each of various translation plugins. I know that Polylang supports WPML calls, but since the Kau-Boys article only talked about how to do it for Polylang, I wouldn’t know what the WPML equivalents would be. This works for me personally, so I guess that’s good enough. (I try to minimize the number of files in my child theme to reduce the chance of getting out of sync when the parent gets updates, and I didn’t need footer.php for any other reason, but c’est la vie.)

    If anyone who sees this thread can share a more universal solution that the theme developer could implement, do tell.

    • This reply was modified 11 months, 1 week ago by OsakaWebbie.
    Thread Starter OsakaWebbie

    (@osakawebbie)

    Catching it in the 404 page is an interesting approach, and I’ll look at your code in detail when I get time (I have to turn my attention to a different project for awhile, and applying this to the theme I’m using would take a lot of time).

    But unlike you, I don’t need it to be generic – I only have one or possibly two taxonomies I would want to list like this, so using an actual page is fine with me. It still amazes me that no one has written a plugin to do this with a block or shortcode. I keep trying different search words and still coming up empty.

Viewing 15 replies - 1 through 15 (of 121 total)