WordPress.org

Ready to get started?Download WordPress

Forums

Open post content in popup (4 posts)

  1. Vox98
    Member
    Posted 2 years ago #

    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

  2. Raby Yuson
    Member
    Posted 2 years ago #

    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.

    -Raby

  3. Vox98
    Member
    Posted 2 years ago #

    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?

  4. Vox98
    Member
    Posted 2 years ago #

    I'm really hoping someone can help with this

Topic Closed

This topic has been closed to new replies.

About this Topic