In other words, if I have a Recent Posts With Thumbnails widget on one page set for a category of “news”, when I click on any of the posts listed and go to that post, we have the same widget showing there, but all the post titles are now unlinked, instead of just the one relating to the post we’re on.
How can we change that? Thanks!
]]>I am in the process of building this new website, and I used PODs to create custom post type for obituaries. I created a custom template, and I am using the shortcode to view a list with 3 most recent obituaries. I have two questions:
1. Is there a way to display the list in line? So I would like to show 3 posts in the row.
2. What is the shortcode to add a link to specific post?
Here is my template code:
<div class="owl-item active" style="width: 245px; margin-right: 30px;">
<div class="card text-center ds ms" data-index="1">
<div class="item-media">
<a href="">{@post_thumbnail}</a>
</div>
<div class="card-body">
<h5 class="card-title fs-20">{@post_title}</h5>
<p class="card-text">{@date_of_birth} -<br> {@date_of_death}</p>
</div>
</div>
</div>
And here is the shortcode I am using to insert the list on the page:
[pods name=”obituary” orderby=”date” limit=”3″ template=”Home Obituaries”]
Please let me know if you have any suggestions. Thanks in advance!
]]>I am encountering technical issues in post notification settings. In my template, I’ve already used {{POSTLINK}} and the preview can correctly shows the URL with my customized domain, e.g. https://blog-sc.hku.hk/openalex-the-open-catalogue-of-the-global-research-system/
However, when I published my post and when the notification email arrived, the URL was written as https://wordpress/openalex-the-open-catalogue-of-the-global-research-system/
The domain name could not be read and the same happens to all other variables with URLS like {{UNSUBSCRIBE-LINK}}.
May I seek your help to solve this issue? Thank you.
]]>Using the Query Loop Block, I’d like to place the “Read More” link outside the Excerpt block for styling reasons like the following:
[Query Loop]
-[Post Title Block]
-[Excerpt Block (without “Read More” link)]
-[“Read More” Link Block]
Is there a separate “Post Link” block I have missed or can I do this by hand in the “Edit Code” window?
What I want works fine hardcoded into the PHP file, but it seems like a simple thing that I should be able to do with a Block.
]]>
]]>I noticed that, when I log-in, two console 404 error appear in Chrome dev-tools: “Failed to load resource: the server responded with a status of 404 (Not Found)” and it refers to two javascript files.
Furthermore, the console reports another issue: “DevTools failed to load SourceMap: Could not load content for https://[mysite.it]/wp-content/uploads/hummingbird-assets/wphb-lazy-load.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE”.
Another issue: I cannot enable browser caching. In the Browser Caching page I have this message: “4 of your cache types don’t meet the recommended expiry period of 1 year. Configure browser caching below.”. But if I try to configure the expiring time, either for “All type files” and for “Individual file types”, it doesn’t work.
Nevertheless, I noticed that the browser caching code has been written correctly in my .htaccess file, but in the Browser Caching page in WordPress backend still reports the expiring time as “disabled” for all the file type (Javascript, CSS, Media and Images).
There is still another issue: something is blocking the images of the posts when I share the posts link on Facebook or WhatsApp.
I would like to keep using Hummingbird as a cache plugin, but I can’t solve these problems.
Could you help me? Thank you
]]>Where is the function to make all first images of any post lead to the post itself? Without adding link manually?
]]>I want to add an option to click on the post image not only on the post title…
I tried this, but it’s not working…
function autolink_featured_images( $html, $post_id, $post_image_id ) {
$html = ‘‘ . $html . ‘‘;
return $html;
}
add_filter( ‘post_thumbnail_html’, ‘autolink_featured_images’, 10, 3 );