Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Patrick Jackson

    (@pjackson1972)

    Hi adityab,

    I’m glad you were able to figure out how to customize the template for this plugin, that’s a big first step!

    Unfortunately, I’m not sure how much help I can be on the NEXT step. I don’t have the divi theme or access to their support forums, and I didn’t see much in the public documentation to tell me how to call that media from a template.

    If you’re using divi to manage your media in a post, then when it comes to accessing that media in a template, you’ll have to find out how divi wants you to retrieve it. Your theme may provide special functions (an API) or shortcodes that can help, and the Elegant Themes support team may help.

    What you’re looking for is code that would allow you to insert post media into a post loop in a custom template. You’ll need to be specific about how you’re attaching it to the post.

    If you happen to know of a shortcode that will do the trick, you can add a do_shortcode() statement to your plugin theme.

    I’m sorry I can’t be more help with this one, but good luck! Let me know what you find out, and if I can be of any more help.

    Thread Starter adityab

    (@adityab)

    Hi Patrick.

    If i give you the index.php or style.css files, will that by any chance do any good to solve the problem?

    Thanks for trying to help!

    Plugin Contributor Patrick Jackson

    (@pjackson1972)

    I doubt those will help in this case. There’s usually not much functionality in the index.php file for larger themes, and the style.css file won’t contain the PHP code I’d be looking for. The theme probably has a lot of files that contribute to its overall functionality, and — if there’s no documentation on the subject — we’d need to dig down to the bits of code responsible for storing and calling that media.

    At the end of the day, the theme either needs to provide a nice way to access the media in the form of an API (for programmers) or a shortcode (for designers).

    Barring that, I’d need to hack the theme a little bit, and look under the hood to find the names of the variables and functions they created, and figure out the right way to access them.

    Some things in the WordPress world are relatively easy to use because they’re well documented and intended to be shared and customized. While powerful additions, premium themes and plugins are often not intended to be customized, so it can mean extra work if you want to use them in a different way than originally intended.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Displaying the posts’ is closed to new replies.