Sandro Dzneladze
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: weird problem trying to show random postoh sorry I had connection problems so… here we go,
Sidebar: https://wordpress.pastebin.ca/1406317
header: https://wordpress.pastebin.ca/1406325:S
Forum: Fixing WordPress
In reply to: weird problem trying to show random postyes, I use category.php… here is the content: https://pastebin.com/m733dbe9d
doesn’t give me any clues ?? do u see something there?
btw, wordpress.pastebin.ca was giving me error, internal server problem, and I found com site :S
thanks for looking into my issue, I appreciate this allot…
Forum: Fixing WordPress
In reply to: weird problem trying to show random postcould it be because of my theme? anything lacking in functions.php?
Forum: Fixing WordPress
In reply to: weird problem trying to show random postOkay, took ur advice and simplified second part of the code… I’m not a coding guru, in Fact this code I created reading several wordpress support files, and example pages ?? so basically I’m doing everything blind…
New code: https://wordpress.pastebin.ca/1401720
Problem is still there, when I’m logged in, it displays image on the parent category of the post, when i log out featured post disappears.
I’m wondering, problem is the parent category only. If I add some new post to my featured tags, that category is also not displaying featured post!.
I’m running out of ideas ??
Forum: Fixing WordPress
In reply to: weird problem trying to show random postso basically what doesn’t work is foreach? and query post? :S very confusing…
any suggestions?
Forum: Fixing WordPress
In reply to: weird problem trying to show random postokay checked with ur code ?? got very strange result…
On all pages where featured post is visible I get:
<div style="display:none;">SELECT * FROM wp_term_relationships WHERE term_taxonomy_id = 354 ORDER BY rand() LIMIT 1</div><div style="display:none;">We have data!</div>Array ( [object_id] => 12 [term_taxonomy_id] => 354 ) <pre style="display:none;">1</pre> <h3>Featured Post</h3> <h2><a href="https://www.sandrophoto.com/2007/10/05/budapest-hungary/" rel="bookmark" title="Featured Post: Budapest, Hungary">Budapest, Hungary</a></h2> <p>I spent 2 years of my life in Budapest, I just wish I did more landscape photography like this… It’s an amazing city with beautiful architecture and pretty scenery.</p> <p>The first photo is a view from my dormitory room, around 6:00 AM - night of heavy drinking and no sleep, and the scene set a good mood for the hangover day <img src='https://www.sandrophoto.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p> <p><a href="https://www.sandrophoto.com/wp-content/gallery/landscapes/SuperNova.jpg" title="Budapest sky at 6:00AM. Insomnia was bothering me whole year, so I've seen some of the most beautiful paintings of nature :)" rel="lightbox[singlepic10]" ><img class="ngg-singlepic" src="https://www.sandrophoto.com/wp-content/plugins/nextgen-gallery/nggshow.php?pid=10&width=336&height=&mode=" alt="Budapest, Hungary" title="Budapest, Hungary" /></a> <a href="https://www.sandrophoto.com/2007/10/05/budapest-hungary/#more-12" class="more-link">more photos ?</a></p>
on the page where it fails:
<div style="display:none;">SELECT * FROM wp_term_relationships WHERE term_taxonomy_id = 354 ORDER BY rand() LIMIT 1</div><div style="display:none;">We have data!</div>Array ( [object_id] => 38 [term_taxonomy_id] => 354 ) <pre style="display:none;">1</pre>
Forum: Fixing WordPress
In reply to: weird problem trying to show random postThank you so much for looking into this! and fast replys… here is the code: https://wordpress.pastebin.ca/1399005
It’s nothing fancy or complicated, escapes my mind why it wouldn’t work on parent category, or tag/featured/ page.
Forum: Fixing WordPress
In reply to: weird problem trying to show random postdecided to write it in a clear way. I have script that fetches random script taged as ‘featured’.
It displays fine everywhere, except the parent category. On parent category it displays only if I;m logged in.
Forum: Fixing WordPress
In reply to: weird problem trying to show random postwell I’m talking about category not displaying my script. on all other pages it works fine… check links I provided, and look at the sidebar on the left bottom…
what is pastebin?
Forum: Plugins
In reply to: [Plugin: Snazzy Archives] Error when activating in 2.3.3have exactly the same error, v2.3.
Forum: Fixing WordPress
In reply to: category not updated problem (is it tags interfering?)wow, not a single answer!
Forum: Fixing WordPress
In reply to: how to exclude categoris from archives?anyone?
Forum: Plugins
In reply to: wp-cache I’ve few noob questions :)is this hack supported at all?
Forum: Plugins
In reply to: wp-cache I’ve few noob questions :)anyone?
Forum: Plugins
In reply to: wp-cache I’ve few noob questions :)thanks for answering ??
do u know if its possible to cache images? Like singlepic from nextgen is generated every time the file is loaded. Its quite server intensive now.