Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

[SOLVED] Problem using Javascript


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Nov 22, 2011, 11:42 AM
synteknos
 
3 posts · Nov 2011
Athens,Greece
Hello,

I'm using atahualpa theme in my site version 3.6.7 and I want to use javascript tinysort (more info here) . This script sorts the posts as you want using tags or from html classes.

I have add the script link in the header, the script the way I want to be my posts sorted and the links to activate it at the sidebar, as below , but it seems that nothing works.

Header
HTML Code:
<script type="text/javascript" src="http://pickadeal.gr/wp-content/themes/atahualpa/js/jquery.tinysort.min.js">
<script type="text/javascript">
	$("div.post").tsort({attr:"imported",order:"desc"});
	$("a#sortprice").click(function(){
	$("div.post").tsort({attr:"price",order:"asc"});
            });
        $("a#discount").click(function(){
	$("div.post").tsort({attr:"discount",order:"desc"});
            });
</script>
Activation links
HTML Code:
<a href="#" id="sortprice">Cheapest first</a>
<a href="#" id="discount">Biggest discount first</a>

Is there any problem using javascript with atahualpa??
Can anyone please help me??
  #2  
Old Nov 22, 2011, 01:32 PM
juggledad's Avatar
juggledad
 
21,687 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
is it suppose to work with wordpress?
what are you trying to sort?
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
Juggledad | Forum Moderator/Support
  #3  
Old Nov 22, 2011, 04:12 PM
synteknos
 
3 posts · Nov 2011
Athens,Greece
I have seen other sites using it , I think that will work in wordpress.
I want to sort the post not only from the newest to the older like wordpress does but also with custom fields I use as parameters like price, discount, expiring day etc.
  #4  
Old Nov 22, 2011, 04:57 PM
juggledad's Avatar
juggledad
 
21,687 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
You might want to ask this question over at wordpress.org. If you can get it to work using twenty-eleven and there is an issue with Atahualpa then we can look into it, but since there are no clear instructions on how to set it up, there isn't much I can offer you.
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
Juggledad | Forum Moderator/Support
  #5  
Old Nov 23, 2011, 02:07 AM
synteknos
 
3 posts · Nov 2011
Athens,Greece
Problem solved.
It workes with wordpress , but I had make a mistake at the activation links.
Thank you very much

Bookmarks

Tags
atahualpa 3.6.7, javascript, sort posts

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript Problem bvimusic Atahualpa 3 Wordpress theme 5 Sep 12, 2011 04:25 PM
Javascript Countdown bvimusic Atahualpa 3 Wordpress theme 1 Sep 12, 2011 02:37 PM
[SOLVED] problem with JavaScript in pages marek91 Center area post/pages 7 Nov 28, 2010 09:29 PM


All times are GMT -6. The time now is 12:44 AM.


Powered by vBulletin® Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.