Forum Replies Created

Viewing 15 replies - 1 through 15 (of 93 total)
  • Thread Starter Jim Reekes

    (@reekes)

    LCP issues due to a block of text is indeed strange

    Right. I’ve been chasing this mystery for months. In fact that’s what led me to use WPP! (moved off Top 10)

    It’s any text coming from the WP editor. Nothing unusual. If the block above the fold happens to be an image, then the LCP is the image. I think this is due to render blocking in general (which is why I asked about WPP).

    I only have two font families, in a couple styles/weights, and they’re hosted locally (and preloaded).

    At this point I’m willing to hire someone to help solve this. I’m at my wits end.

    Thread Starter Jim Reekes

    (@reekes)

    It’s the REST API request it makes that may take time to return a response

    Ah, that makes sense. I couldn’t think of how the JS was taking this long.

    I’ve already done as much as I can think of to improve performance, across the entire site (e.g. db optimizations, caching, Autoptimize, and leaning out plugins and my own code). If I can write the code myself I do, rather than install more plugins.

    I think I’m down to bottoming out with my hosting service ??

    My own experience is the site is fast, even on mobile. But Google’s Page Insights doesn’t seem to like it all that much. I’m struggling to get the mobile performance score into the 80s. (all my other scores are in the high 90s or even a solid 100) LCP on a block of text (!) can take >4 seconds on mobile. I think the biggest indicator of my hosting service is the TTFB number of 2.5 seconds.

    • This reply was modified 1 month, 3 weeks ago by Jim Reekes.
    Thread Starter Jim Reekes

    (@reekes)

    From what I see it doesn’t seem that the “Exclude Scripts” from the JS Optimization section applies to the minification option, only to the defer-script functionality (but why? It doesn’t make sense, it’s confusing – at least then provide another “exclude” field to exclude scripts from the minification option…)

    Yeah, that’s what I ended up thinking, but couldn’t believe it’s true.

    I spent months going thru Autoptimize and others. I could’t get the performance improvements Google’s ranking was expecting. I asked SiteGround to help, and they installed Debloat and configured it. The performance was (finally) greatly improved.

    It’s also broke GDPR cookie managment, which is a royal pain to begin with. That’s yet another piece of code that doesn’t want to be cached, and yet without caching it’s really slowing down page loading.

    [smashing head on desk]

    • This reply was modified 1 month, 3 weeks ago by Jim Reekes.
    Thread Starter Jim Reekes

    (@reekes)

    First, I was confusing the WPP widet with the WPP block. The block is working on pages. I use Gutenberg. Only the short code wasn’t working.

    I eventually figure it out, and it was a D’oh! moment.

    I’m using a custom post and I have to add post_type (of course).

    I had that in there previously, but that was when there was nothing in the popularpostssummary table. I also tried different combination of parameters, but I must have not had post_type included with the other attempts. The other key parameter I needed is range='all'.

    Sorry for my confusion!

    The final piece of the puzzle was figuring out how to get the except to render. I couldn’t find how to do that in the docs, and tried everything. I eventually found a clue in your reply to someone else. Then going back to the main docs page, I see how this is (somewhat) hidden in there. Displaying the excerpt requires the use of post_html. Now that I understand this, I can see how this works. A couple examples would have made this obvious.

    Here’s what I ended up with:

    [wpp post_type='articles' limit='5' range='all' stats_views=0 order_by='views' excerpt_length=20 excerpt_format=0 excerpt_by_words=1 post_html='<li><span style="font-style: bold;">{title}</span><div style="font-style: italic;">{excerpt}</div></li>']

    I tried a simple <br> to separate the title and excerpt in the list’s row, but that didn’t work. I could only get that to happen using a <div>.

    Another issue I found, If I added a header it defaults to <h2> but the problem is it caused the list to appear in a new column. So tried adding header_start and header_end to change this to <h4> but that still put the list into a new column. Odd, huh? This is what I had:

    [wpp header='Popular Articles from Argon Systems' header_start='<h4>' header_end='</h4>' post_type='articles' limit='5' range='all' stats_views=0 order_by='views' excerpt_length=20 excerpt_format=0 excerpt_by_words=1 post_html='<li><span style="font-style: bold;">{title}</span><div style="font-style: italic;">{excerpt}</div></li>']

    I gave up on the idea of having the short code add a header. Instead I put it above the list separaly myself within a container. That was the trick, so now the header and list are kept together. Then, as an experiment, I wrapped just the short code within a container and it worked. The list wasn’t starting a new column. But then it was hard to see the layout within Gutenberg so I just kept the header outside of the short code. It’s more WYSIWYG that way.

    Now that I’m understanding the code within WPP, it’s really well done. There’s a lot of options in there. I suppose someone could add a bunch of UI to show off all it’s power, but then it wouldn’t be free plugin anymore ??

    Many thanks for the great plug in and fantastic support.

    Thread Starter Jim Reekes

    (@reekes)

    Are you testing all this on a dev site?

    Yes, getting all the code in place and tested before pushing out to live.

    [wpp] shortcode if used without any parameters

    I’ve tried it without, and with several options. It always returns “no data” no matter.

    “Most Viewed” tab will list the most viewed posts from the currently selected time range (by default it’s last 7 days)

    I’ve tried it even with the last 30 days, but it wasn’t showing anything. The tables migration added the last viewed as today, so I had expected to find everything listed in any date range. But, no posts showed up in anything other than the Hall of Fame.

    Yet, since the Widget is working as expected but the [wpp] short code doesn’t no matter what parameter I tired, I’m at a loss.

    But, maybe I should just use the Widget on the page instead?

    Thread Starter Jim Reekes

    (@reekes)

    not supposed to be used as a code snippet

    Understood. I did try using the original code unmodified (except for changing the post type to my CPT). I only use WP Code for adding such snippets. Putting the code there it crashed the site to where I couldn’t even get to the admin pages.

    Also, I have some custom fields in my custom post. Those I’ve got as columns in the admin page. So I need to merge that with Popular Post’s pageviews.

    I’ve struggled with sorting. I’ve been trying to add the custom post count to the admin’s User listing, and haven’t gotten that working either.

    not familiar with this ‘request’ hook

    It was one of many options I tried, and it was the only one I got working for the other columns. I have no doubt there’s a better approach.

    What filter should I hook on for sorting different columns within the Custom Posts listing? I would assume that’s what I should also be using for my User posts column.

    I’ll try getting the original code you provided working as-is, again.

    I’ll also try to find another way to hook on the sorting option. But, I’ve already tried several methods and the ‘request’ hook was the only one I got working. It’s a switch with a case (or if-else) for each column type.

    please?grab a log

    I think this was the crash, but it looks like a side effect.

    [27-Sep-2024 21:24:38 UTC] PHP Fatal error:  Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function "custom_post_type_articles" not found or invalid function name in mysite.com/public_html/wp-includes/class-wp-hook.php:324
    Stack trace:
    #0 mysite.com/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
    #1 mysite.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #2 mysite.com/public_html/wp-settings.php(700): do_action('init')
    #3 mysite.com/public_html/wp-config.php(94): require_once('/home/customer/...')
    #4 mysite.com/public_html/wp-load.php(50): require_once('/home/customer/...')
    #5 mysite.com/public_html/wp-blog-header.php(13): require_once('/home/customer/...')
    #6 mysite.com/public_html/index.php(17): require('/home/customer/...')
    #7 {main}
    thrown in mysite.com/public_html/wp-includes/class-wp-hook.php on line 324
    Thread Starter Jim Reekes

    (@reekes)

    I contacted support on July 9th. As of July 31st I’m still waiting for answers.

    Even if we can get it working, with all the time and effort, I end up with a significant performance impact harming SEO.

    Thread Starter Jim Reekes

    (@reekes)

    NOTE: from your docs:

    Step 3:Ensure the order of the scripts

    Ensure that the scripts are loaded in the following order for proper functionality:

    1. Custom Consent Mode script
    2. gtag / GTM script
    3. CookieYes script

    Maintaining this sequence is essential for the correct operation of the functionality.

    Previously, CookieYes had us adding the Consent Mode script manually. I was able to add it before adding Google Analytics gtag script. That’s how I got the sequence in the required order. Then the new version was released, which broke it. It’s no longer possible for me as far as I can determine (reading all of the docs).

    I don’t control when #1 is executed. Now, with the latest released, I only add #2.

    NOTE: I’m not using Google Tag Manager. I’m using classic Google Analytics gtag.

    If I add the gtag script to head, using standard WordPress API, I cannot control the sequence described by your docs. There is an implicit requirement to use Google Tag Manager with CookieYes. I don’t see how to integrate it otherwise.

    That requirement shows up again when the only way to verify the integration is to debug with Google Tag Manager. For the average person, this is all much. Still, why isn’t the requirement of using Google Tag Manger made more clear? Then the docs are incomplete to setup a new Google Tag Manager.

    Is it even possible for CookieYes to work with out Google Tag Manager. If so, how?

    Even if I go thru all the effort to install Google Tag Manager, which I don’t need because I’m just using basic Google Anlytics, the real problem is how CookieYes is significantly impacting performace. That’s the real problem. This then impacts Core Vitals, and lowers SEO.

    • This reply was modified 3 months, 3 weeks ago by Jim Reekes.
    Thread Starter Jim Reekes

    (@reekes)

    BINGO!

    The beta does NOT have the problem ??

    Export works. I get a csv file downloaded.

    Thread Starter Jim Reekes

    (@reekes)

    Nope, it fails the same way at both hosting sites. No idea why it fails. If I turn off PHP errors it was export the comma separated text to the html page.

    Then I saved the html page as a file locally, and cleaned it up with a text editor.

    Thread Starter Jim Reekes

    (@reekes)

    I do have access to the tables via phpMyAdmin. I can export wp_top_ten but it lists the post ID, which will be different on the new site. So I haven’t found a way to migrate the views count to the new site. I’ve been using WP Import Export Lite for migrating data (a great tool) but it doesn’t show wp_top_ten.

    Oddly, the export/import functions in your plug in do not work for the new site which doesn’t yet have any views. The wp_top_ten table is zero length there, but I get the same error.

    If I disable display_errors I get a new web page showing:

    "Post ID",Visits,"Blog ID" <followed by 3 number separated by commas, then a CR>

    Is that how it’s suppose to work? I’m to save the html web page myself? I was expecting it would create a CSV file to save.

    Let’s say that’s how it suppose to work and I save the html, and correct it to be CSV. How should I go about updating the post IDs to the new site’s IDs?

    • This reply was modified 1 year, 1 month ago by Jim Reekes.

    When is this going to be fixed? It’s really annoying, wasting so much of my time I’m force to look for a replacement.

    Also it’s gotten worse. Today with all the latest WordPress software and this plugin, adding the reusable block hangs in the editor.

    Bottom line, this plugin is not compatible with reusable blocks. That’s a show stopper bug.

    Thread Starter Jim Reekes

    (@reekes)

    Can you verify this is correct?

    function replace_crp_excerpt($output, $id, $excerpt_length, $use_excerpt)
    {
    // set $output to my excerpt
      return $output;
    }
    add_filter( 'crp_excerpt', 'replace_crp_excerpt', 100, 4 );
    • This reply was modified 4 years, 2 months ago by Jim Reekes.
    • This reply was modified 4 years, 2 months ago by Jim Reekes.
    • This reply was modified 4 years, 2 months ago by Jim Reekes.

    What’s the answer? How to you style the mobile menu?

    Thread Starter Jim Reekes

    (@reekes)

    Wow, I’m not asking for advice – I’m asking for documentation about your product. The Yoast docs are incomplete. They mention using the schema_article_post_types hook but DO NOT explain how to do so. All of your other hooks/filters explain this. Not this one. I’m only asking for documentation on how to use the hook you are recommending we use.

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