Argumentum
Forum Replies Created
-
Forum: Plugins
In reply to: [WP-PageNavi] Cannot redeclare the_posts_navigation() – link-template.phpI got this all wrong. This is not a theme problem.
The function
the_posts_navigationin my theme is actually doing nothing. To confirm that, I removed the function from the theme file, and the posts navigation on my website is still working with no problems.So my website is actually using the function
the_posts_navigationfrompublic_html/wp-includes/link-template.php, which is a core file.WP-PageNavi instructions says:
In your theme, you need to find calls to next_posts_link() and previous_posts_link() and replace them.
But, in my website, the only file with these calls is
link-template.php(https://core.trac.wordpress.org/browser/tags/4.4.2/src/wp-includes/link-template.php).What should I do to use WP-PageNavi in my site, then?
Thanks in advance.
Forum: Plugins
In reply to: [WP-PageNavi] Cannot redeclare the_posts_navigation() – link-template.phpThanks for your prompt answer. I am already waiting for a response from the theme author, but I thought that perhaps the problem wasn’t exactly theme-related, since the error mentions the function in the file
public_html/wp-includes/link-template.php.I’ll wait for a response from them.
Just a quick update… It might be a coincidence only (I don’t remember seeing anything related to it in the changelog), but I published two posts after updating Jetpack, and Publicize worked on Facebook with no problems.
I also filed a bug on Facebook for Developers, as Jeremy suggested, but they gave it a “Won’t Fix” status.
Forum: Plugins
In reply to: [Post Snippets - Custom WordPress Code Snippets Customizer] Bulk editGreat, thanks again.
Thanks, Jeremy. Activating the WP.me shortlinks did make Publicize use the long permalinks.
I just published a new post using Publicize on both Twitter and Facebook. What I got is this:
Twitter: correct title, correct image
Facebook: correct title, wrong image (no image at all, not even the fallback appears on the preview)Now, the weird thing. When, five minutes later, I try to share the same post on Facebook again, manually, I get no image and no title. I get nothing, as the debug shows: http://goo.gl/eNlA5y. This is especially weird because Publicize at least was able to get the correct title; I get nothing, and I’m trying to share five minutes after Publicize did.
After I press “Fetch new scrape information” a couple times more, I finally get the right results.
Five minutes should be enough time for Facebook to get all the meta tags. I’m actually under the impression that, if I didn’t press “Fetch new scrape information” a couple more times, I would keep getting nothing even a few hours later.
Anyway, something is probably very wrong on my side. Thanks for your support.
Thanks for the prompt answer, again.
Sorry, I didn’t know about this limitation. I should have read the Codex first, it’s all there.
Thanks, Jeremy. I’ll try to investigate if there’s something wrong on my side.
Things are very weird here. I did another experiment. It probably will not clarify things further (at least not right now), but I’ll post it anyway.
I published a post on WordPress and I used Publicize for Twitter only (I unchecked the Facebook box; these are the only two social networks I use). As always, the tweet was posted with no problems at all, with the correct featured image.
I waited a few minutes and then I went to share the post manually on Facebook. I was surprised – Facebook could not pull the featured image and not even the post title! The preview was showing the fallback image and a “Page not found” as the title. In fact, that is happening right now, and it’s been like 20 minutes since the post was actually published on the site.
Now, an important note (I think): that happens if I try to share the post with the shortlink used by Publicize (
http://www.example.com/?p=X, X being the post ID). When I try to share the post with the long permalink, I can get the correct featured image and post title.This is very weird. It’s like Facebook is having some problems to pull the right information when the shortlink is used.
To summarise:
1. When I use Publicize with Twitter and Facebook (shortlink is used in both cases):
Twitter: correct title, correct image
Facebook: correct title, wrong image (fallback)2. When I use Publicize with Twitter only and, many minutes later, share the post manually on Facebook (shortlink is used in both cases):
Twitter: correct title, correct image
Facebook: wrong title (“Page not found”), wrong image (fallback)3. When I use Publicize with Twitter only and, few minutes later, share the post manually on Facebook (long permalink is used on Facebook):
Twitter: correct title, correct image
Facebook: correct title, wrong image (no image at all, not even the fallback appears on the preview)4. When I use Publicize with Twitter only and, a few more minutes later, share the post manually on Facebook (long permalink is used on Facebook):
Twitter: correct title, correct image
Facebook: correct title, correct imageIs it possible to set up Publicize to use the long permalink instead of the shortlink?
I would like to make some additional tests using the long permalink in Publicize.
Forum: Themes and Templates
In reply to: [Gazette] Post navigation – background imagesGreat, I did what you suggested, and it worked!
I was first looking for a way to override the
requirestatement in the parentfunctions.php, but I couldn’t find a way to do it. That’s exactly what this guy wanted: http://stackoverflow.com/questions/32554393/how-to-override-a-parent-file-in-a-child-wordpress-theme-when-parent-file-is-bei.But simply unhooking the original function and including the new version with a different name worked. Thanks again!
Forum: Themes and Templates
In reply to: [Gazette] Post navigation – background imagesI’ve successfully edited the file
\inc\template-tags.phpto show the right background images in the post navigation — just had to change the first parameter ofget_adjacent_postfromfalsetotrue.Now I just need to know how I can use this in a child theme, since the file is in a subfolder. I have tried to simply copy the original directory hierarchy, but the file was not loaded. I suppose only the files in the root folder of the theme are automatically overrode by its respective child versions, then.
I see
\inc\template-tags.phpis loaded in the parentfunctions.phpwithrequire get_template_directory() . '/inc/template-tags.php';, but I have no idea how to override thisrequirein a child theme.Any help will be appreciated. Thanks again!
Great, I just tested the new version, and it’s working perfectly. Thank you!
Thanks for the prompt answer.
Forum: Plugins
In reply to: [Plugin: Yoast SEO] Disable Content AnalysisUnfortunately not.
Read this: https://github.com/Yoast/wordpress-seo/issues/3464
Ops, I just realised this has already been discussed here: https://wordpress.org/support/topic/settings-localisation-options
Sorry.
Forum: Themes and Templates
In reply to: [Gazette] Moving the entry footerHi, Kathryn.
Thanks for your answer.
I did try moving the
<?php gazette_entry_footer(); ?>to different sections of the templates, but that didn’t work because of this:With the other viewports, the
entry-footerwould appear on its original place, below theauthor-infobox and above the related posts.I should be more specific. “Other viewports”, in this case, would be the viewports with less than 960px of width. With 960px or more, the sidebar actually becomes a sidebar — it goes to the right side of the screen. With less than 960px, the sidebar stays down the page, below the related posts and collapsed (the user needs to touch the
sidebar-toggleto view the sidebar).That means moving the entry footer to the sidebar would put it below the related posts in mobile viewports. It also would hide it due to the collapsed sidebar. That doesn’t happen with the author info box, which stays visible above the related posts, right below the post content, even in mobile.
I wanted the entry footer to have the same behaviour of the author box info, but changing templates files wasn’t working. It was killing me.
In the end, it was all about JavaScript. The file single.js has this:
function authorInfo() { var authorInfo = $( '.author-info' ); if ( authorInfo.length ) { if ( $( window ).width() > 959 ) { authorInfo.prependTo( '.widget-area' ); } else { authorInfo.insertAfter( '.entry-content' ); } } } $( window ).load( authorInfo ).resize( debounce( authorInfo, 500 ) );I created and enqueued a new JS file to do the same with the entry footer. Apparently it’s been working well. I’ll mark this as resolved, but feel free to make any comments. If you want to see it working, here’s one example: http://goo.gl/ACCwff
Thanks again. You’ve been doing a great job around here.
Forum: Plugins
In reply to: [Amazon Link] Default image retrieved?Hello,
I would like to have the Images Plugin v1.6 as well. Paul, could you post a new link, please? Or maybe SD or another user could upload it?
Thanks!