davedillonphoto
Forum Replies Created
-
Forum: Plugins
In reply to: [Replace Content Image Size] Replaces all images with first imageSame issue here. It seems to be related to how the code is written in the post. if you don’t have line breaks between IMG tags it tends to duplicate the first post?
Pleeeeeeeaaaase fix I really need this plugin!
Forum: Plugins
In reply to: [Import External Images] Has anyone gotten this to work with Squarespace?To follow up on my previous post. Adding img.jpg?format=original helped my issues with importing from squarespace… but didn’t solve it.
My imports work, but only with the 1000px default image size from squarespace. I want to import the ORIGINAL file size from squarespace. It seems like the ?format=original tag at the end of the URL is ignored by the plugin and only the img.jpg portion is imported (which links to the 1000px image and not the full resolution version.)
I’ve been monkeying around with the code to the plugin but have not had any success… if anyone has a solution to this i’d love to know!!
Forum: Plugins
In reply to: [Import External Images] Has anyone gotten this to work with Squarespace?I was also battling the “?format=original” problem… but I’ve found a work around.
Use a text editor on your XML file that you’re importing and replace all
“/?format=original” with /img.jpg?format=original”
This tricks the external image importer into thinking it has a file name and successfully imports the file.
Hope this helps someone ??
Forum: Plugins
In reply to: [Smarter Navigation] return URL only of next/prev postI’ve created a custom function to check to see if there’s “no data” from smarter navigations “get_adjacent_ID” function. If it returns -1 i have it fall back to the native wordpress navigation. seems to work well for what I’m doing. I hope this can help someone else.
// //Photoblog click thru image function // function previous_post_image() { echo "<a href='"; $prev_id = get_adjacent_id_smart(true); $prev_id_fallback = get_previous_post(); if ($prev_id == -1) { echo get_permalink( $prev_id_fallback ); } else { echo get_permalink( $prev_id ); } echo "'>"; the_post_thumbnail( 'photoblog', array('alt' => ''.get_the_title().'', 'title' => ''.get_the_title().'' )); echo "</a>"; }
Forum: Plugins
In reply to: [Smarter Navigation] return URL only of next/prev postAs an update to this…
It appears that I receive a “-1” whenever when someone is direct linked to a post. which means “get_adjacent_ID” does not have a fallback like previous_link ?? If I go to a category page or archive page to get to a post I receive the previous ID.
problem is, my home page is set up to direct link to the latest post… which means theres no previous ID. Is there a way to set “get_adjacent_ID” to fallback?
you can see my site here:
https://www.davedillonphoto.com/Forum: Plugins
In reply to: [Smarter Navigation] return URL only of next/prev postThanks for the info. however it seems mine always returns -1 dispite other posts being before it. This happens when passing “False” when passing “true” i get nothing?
Forum: Plugins
In reply to: [Smarter Navigation] return URL only of next/prev postIt appears that get_adjacent_id_smart is broken for me. when I try to echo the results I always receive “-1” and no post Id. Any suggestions?
Forum: Plugins
In reply to: [Smarter Navigation] return URL only of next/prev postThis actually isn’t working using the following code… any ideas? I’m trying to make the “Featured image” of the post link to the previous post.
<?php $prev_id = get_adjacent_id_smart(true); ?> <a href="<?php echo get_permalink( $prev_id ); ?>"> <?php the_post_thumbnail( 'photoblog', array('alt' => ''.get_the_title().'', 'title' => ''.get_the_title().'' )); ?> </a>
Forum: Plugins
In reply to: [Smarter Navigation] return URL only of next/prev postAwesome, thanks!
Figured it out, you need to change
‘posts_per_page’ => -1
about halfway down the main.php file. This will compensate for the screwed up order.
I’m also noticing this problem. Once I click “view older posts” and move on to page 2 of the blog archives smarter navigation seems to skip every 2 posts. and when you go to page 3 it seems to skip every 3 posts. Seems like an issue with pagination/smarter nav.
Need help!
Forum: Reviews
In reply to: [Related Posts] risky stuffThis plugin works great, very simple and effective. easy to customize and impliment the PHP tags yourself in your own theme.
I’m not sure how “igvujicic” managed to “lose posts” with this plugin, after browsing the code I see no such database calls so I’ll chock that up to user error. Don’t be afraid to install!
Forum: Plugins
In reply to: [Smarter Navigation] manually clearing cookie?solved the problem myself using this line of code on my static home page:
<?php setcookie ("smarter-navigation[title]", "", time() - 3600); ?>
Hope this can help someone else.
Also having this issue on my custom template. I’ve done some digging in the plugin and can’t seem to locate the function to display the jetpack comment icons.
This is a similar problem in the sharing feature but can be fixed using <?php echo sharing_display();?>
Jetpack developers… PLEASE INCLUDE A LIST OF FUNCTION TAGS WITH YOUR PLUGIN!
It would make these things a lot easier to figure out. The hooks you’re using only work on wordpress default templates properly!