Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Using shortcodes outside of WordPress

  • This topic is empty.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #34326

    I’m looking to pull products into a mobile version of my site using a shorcode like this?

    ‘bishop-place-millbrook-communities’ ) ); ?>

    I tried placing here… http://goodwynbuilding.com/wp-content/themes/Goodwyn/mobile/index.php

    I guess that was wishful thinking.

    #87043
    TheDoc
    Member

    I shouldn’t be accessing your theme via your themes folder. The URL should look something like:

    http://goodwynbuilding.com/mobile/index.php

    #87046

    Ok I got that.
    Can you point me in the right direction for getting the products in? Should I be using JSON?

    #87048
    TheDoc
    Member

    I guess I’m more confused as to why it should be outside of WordPress?

    Instead of redirecting your users to a completely different mobile site, you could just use some media-queries for mobile resolutions.

    Other than that, you might be able to simply access the database directly, but that goes above my knowledge level. You won’t be able to use any hook like the one in the original post outside of WordPress.

    (also, just to clarify, a WordPress ‘shortcode’ would look like this: [display-products] — just in case you are asking elsewhere and people are confused!)

    #87050

    I wasn’t interested in the mobile pages being WP because the mobile version would have totally different style sheet, totally different header and I would want it to be simpler and lighter weight.

    But I guess I could do a custom page template… Is that what you would recommend?

    #87051
    TheDoc
    Member

    I have a feeling I don’t have a proper recommendation for you. I think the best would be to figure out a way to access the database directly.

    #87076
    Brightonmike
    Member

    You can hook into WordPress as much or as little as you want. You want to display WordPress content, but you don’t want it to be WordPress? That doesn’t even make any sense.

    What aspect of WordPress are you not wanting? :S

    #87097

    My thinking was that wordpress often generates rss/xml feeds that allow you to pull content into other places.

    I guess I could create a stripped down page template. I dont need any jquery, widgets, plugins, stylesheets or much of anything from my WP site. Just the products.

    #87108
    TheDoc
    Member

    I was thinking that too, but I can’t figure out a way you could pull that information that way, since I doubt it’s being generated like that anywhere.

Viewing 9 posts - 1 through 9 (of 9 total)
  • The forum ‘Back End’ is closed to new topics and replies.