Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have managed to code tab system that fetches different categories and custom taxanomies on a home page and shows relative posts. Now, is it possible that when someone clicks on one of the posts in some specific tab, then the post's content can be shown in the tab itself, instead of taking the user to the single post (single post page)?

Here is the screenshot:

enter image description here

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

If you are using jQuery UI Tabs you can use AJAX to load the content. There is an example on the plugin page.

UI Tabs is always part of a WordPress installation and registered already as jquery-ui-tabs.

share|improve this answer
    
well, I didn't knew that. But actually what I meant to say is if some user clicks on Matt's Hotel then everything from the tab should wipe off and the content of Matt's Hotel should come up in the same that that is open. –  vajrasar Jan 12 '13 at 8:25
1  
Yes, you can do that too. See the docs, there is an API for link hijacking that you can use inside of a tab too. –  toscho Jan 12 '13 at 8:28
    
Sweet, thanks. But if am thinking right then I have to re-design the tab system using the code for jQuery UI Tabs and then I can implement what I want to achieve, right? –  vajrasar Jan 12 '13 at 8:30
    
Either that or you build your own AJAX handler for that. That isn’t a complex task: Just hijack all links inside of a tab, and replace the tab content with the link’s target. –  toscho Jan 12 '13 at 17:05
    
ok, thanks. am on it. Will comment if I get it done or get stuck somewhere. –  vajrasar Jan 14 '13 at 6:41
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.