WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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
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

Your Answer


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.