Support » Fixing WordPress » Open post content in popup

  • Hello, I have been trying to accomplish what I thought would be a somewhat simple thing. I have categories that display in my sidebar. I would like it when the category title is clicked to open up its content in a popup modal like prettyPhoto instead of its own page. Can this be accomplished?

    Thank You

Viewing 3 replies - 1 through 3 (of 3 total)
  • Integrating prettyPhoto would be a simple task here. What you will have to deal with to get this feature working is retrieving the information (i.e. the list of posts requested in the selected category) asynchronously (in the background) and would involve using AJAX.

    This is what is going to happen:

    When a user clicks on a category (e.g. News), WP sends and retrieves data from the server asynchronously (this avoids interference with the display and behavior of the existing page thus no page refresh or flicker). Once the data has been successfully obtained, fire the prettyPhoto plugin and then populate the data there.


    Thank you for the response Raby! I am not overly knowledgeable when it comes to integrating this or possibly editing php on my own. Any chance of an example?

    I’m really hoping someone can help with this

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Open post content in popup’ is closed to new replies.