Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter ch4ye

    (@ch4ye)

    Ok. I found multiple ways to achieve that, unfortunately they aren’t exactly what i was looking for. Gonna list for whoever ever wonders about this.

    1. Code Snippets plugin, works fine as long as it has option to add After HTML Element. In this case .meta. Would rather not use plugin for that.
    2. Using normal function to append function append_text_to_meta() { echo 'custom text';}add_action( 'neve_post_meta_single', 'append_text_to_meta' ); Unfortunately this adds text above nv-meta-list, just after title.
    3. Went straight up to post_meta.php and added up link to the $markup. This works exactly as i wanted but then update might wash it away.

    Is there any other way? Like modified second option that actually hooks up where it should? I looked up possible hooks, and it’s either neve_post_meta_single or neve_before_content, post meta that includes category, author, comments, is kinda skipped there.

    Thread Starter ch4ye

    (@ch4ye)

    Hi,

    Yeah, i went to look at possible solutions and looked up how that cache clear works. Apparently it is 30 urls per api call and up to 1000 per minute. It is okay when there is less requests. But once there is more it reaches limit and that’s that.

    [cloudflare::purge_cache_urls_async] Response for request 0: {“success”:false,”errors”:[{“code”:1134,”message”:”Unable to purge, rate limit reached. Please wait and consider throttling your request speed”}],”messages”:[],”result”:null}

    They are all purged at the same time. I am not sure if there is option in settings to to split it apart over longer period. I couldn’t find anything.

    I managed to fix problem with preload missing slash on paged pages by editing cache_controler.class.php file.

    I did end up finding different issue though. When updating post and changing permalink, it seems to only clear new permalink, leaving old one cached, so it won’t redirect.

    Is there a way currently to queue api calls within limits?

    Thread Starter ch4ye

    (@ch4ye)

    This is default schema generated on tag page.

    <script type="application/ld+json" class="yoast-schema-graph">{"@context":"https://schema.org","@graph":[{"@type":"CollectionPage","@id":"https://domain.com/tag/random","url":"https://domain.com/tag/random","name":"Random Archives","isPartOf":{"@id":"https://domain.com/#website"},"primaryImageOfPage":{"@id":"https://domain.com/tag/random#primaryimage"},"image":{"@id":"https://domain.com/tag/random#primaryimage"},"thumbnailUrl":"https://domain.com/wp-content/uploads/image.jpg","breadcrumb":{"@id":"https://domain.com/tag/random#breadcrumb"},"inLanguage":"en-US"},{"@type":"ImageObject","inLanguage":"en-US","@id":"https://domain.com/tag/random#primaryimage","url":"https://domain.com/wp-content/uploads/random.jpg","contentUrl":"https://domain.com/wp-content/uploads/random.jpg","width":1280,"height":720,"caption":"image alt"},{"@type":"BreadcrumbList","@id":"https://domain.com/tag/random#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://domain.com/"},{"@type":"ListItem","position":2,"name":"Random"}]},{"@type":"WebSite","@id":"https://domain.com/#website","url":"https://domain.com/","name":"Test","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://domain.com/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"}]}</script>

    I kinda know how to do that. But the way i know would require disabling rank math tag schema. And generating new one. Don’t think it’s efficient way. Since i assumed rank math probably already has functions/filters for that. On single pages it already generates image schema with hierarchy if i am not mistaken. Featured Image -> First Image on page and so on.

    Thread Starter ch4ye

    (@ch4ye)

    Hello. Thank your for your answer.

    Previously, archives (which are tags/categories) had schema that included “primaryImageOfPage and “image”. Which had first image/attachment in it. Using filter would be simplest way to do it.

    The one you posted is a good start. But not sure how to edit it to make it grab first image of the page content.

    Thread Starter ch4ye

    (@ch4ye)

    Also wanted to update.
    Ended up fixing the issue with database instead of backups and filters.

    _genesis_title meta_key stores custom titles

    so just had to add _tsf_title_no_blogname meta_key to all ids with _genesis_title

    Thread Starter ch4ye

    (@ch4ye)

    Hi,

    Yes indeed. I used different plugin to import data.
    I had a feeling it might be that. Considering i looked up for any plausible fix to that and hardly found anything while the issue is caused by such obvious thing that everyone would have problem with.

    In such case i might go back and recover database to do it again through your extension.

Viewing 6 replies - 1 through 6 (of 6 total)