chavo
Forum Replies Created
-
Why to use Fotobook? It is, by far, the best plugin to manage facebook photo albums.
The plugin creates a page for each album with permalinks structure (seo friendly). Also, if you are web designer, you can integrate the look and feel of the albums with the look and feel of the site. You can also update albums at once and Fotobook creates the needed pages for you and is really easy to hide albums.
I don’t find all these features in any other plugins.
Please Aaron, give the plugin a new try!
ps: sorry for my bad english.
Forum: Plugins
In reply to: [Custom Field Template] Upgrading to version 2.1.2 causing errorsI’m getting errors with spanish characters in fields names since upgrade.
Edit:
Weird behavior: error fixed when post saved.
Plugin isn’t necessary. We use WordPress core functions.
You are welcome!
I think so!
It works as you wish from begining?
ps: yes, my mistake. I forget opening ”
Let’s try with this (make a proof checking both). Remember to clear your cache.
if(isset($_SESSION['history'])){ if ($_SESSION['history'] == "visitorComesFromLatest") { previous_post_link ('%link','PREV', false); next_post_link ('%link','NEXT', false); } else if ($_SESSION['history'] == visitorComesFromLatestSubcategory") { previous_post_link ('%link','PREV', true); next_post_link ('%link','NEXT', true); } } else { previous_post_link ('%link','PREV', false); next_post_link ('%link','NEXT', false); }ps: I don’t know why I can’t get I working. I get it in the past. Maybe my memory is not working ok, hahaha.
Ok, me too. Try to clear your cache. Do you uncheck parent category and left only the child category selected?
Ha! Well, if you check both parent and child, it will navigate based on parent (that’s the reason why wasn’t working).
Just check child category and try again with this in single.php
if(isset($_SESSION['history'])){ if ($_SESSION['history'] == "visitorComesFromLatestSubcategory") { previous_post_link ('%link','PREV', true); next_post_link ('%link','NEXT', true); } } else { previous_post_link ('%link','PREV', false); next_post_link ('%link','NEXT', false); }I’m from Argentina (near to Buenos Aires).
Ok, I just wanted to check that sessions works even for subcategory.
Please, in single.php, just to try if link navigation between posts in same category works, put this:
<?php prev_post_link('%link', 'Prev post in same category', TRUE); ?> <?php next_post_link('%link', 'Next post in same category', TRUE); ?>Just to be curious..Where are you from? I suspect that we share similar time zones.
Ok, let’s try this:
In footer.php
<?php $this_category = get_category($cat); if (is_category('latest')) { $_SESSION['history'] = "visitorComesFromLatest"; } else if ($this_category->category_parent == 96) { $_SESSION['history'] = "visitorComesFromLatestSubcategory"; } ?> <?php wp_footer(); ?>In single.php
if(isset($_SESSION['history'])){ echo "<p>Visitor comes from ".$_SESSION['history']."</p>"; }Tell me what you get if you come from Latest category and what you get it you come from Latest subcategory (for example, Illustration).
Don’t get frustrated! We will get it working (it works for me in the past!).
Before changing code in footer.php, try this way in single.php:
if ($_SESSION['history'] == "visitorComesFromLatest") { previous_post_link ('%link','PREV', false); next_post_link ('%link','NEXT', false); } else { previous_post_link ('%link','PREV', true); next_post_link ('%link','NEXT', true); }Yes, I know, is working as expected!
Maybe I’m not being clear about what this code does. The code checks if you come from parent category “Latest”. If it finds session = visitorComesFromLatest, you will navigate between posts in parent category order.
But what I you select a child category? You will want to navigate ONLY between posts in same category and not parent order. Right?
Well, to get this working, you will need to put the code as follows:
if(isset($_SESSION['history'])){ if ($_SESSION['history'] == "visitorComesFromLatest") { previous_post_link ('%link','PREV', false); next_post_link ('%link','NEXT', false); } } else { previous_post_link ('%link','PREV', true); next_post_link ('%link','NEXT', true); }Try and tell if I’m right.
Perfect! Session is working.
Let’s try again step by step. Tell me if this works:
if(isset($_SESSION['history'])){ if ($_SESSION['history'] == "visitorComesFromLatest") { previous_post_link ('%link','PREV', false); next_post_link ('%link','NEXT', false); } }Mmmmm…
Well, let’s try if session is working. Clear the code you add in single.php and try this:
if(isset($_SESSION['history'])){ echo "<p>Visitor comes from ".$_SESSION['history']."</p>"; }Tell if you get “Visitor comes from visitorComesFromLatest”.
Ok, not a problem. If you have another parent categories, you will need to use other code in single.php.
Does it works for you?