I have created API using Wordpress REST API from that API I am sending Wordpress post content to the mobile app.I have added forms and polls plugin to add different forms and polls in posts.The problem is that the shortcode for that forms and polls is not working when I pass it to mobile through API. So how can I render that shortcode to the mobile app?
One solution is to use iframes to display the shortcode.
For example :
Create a page with the shortcode in it.
Then use this page url as the src of the iframe.
And show this iframe where you need on your mobile app.
One disadvantage can be the loading time, use a loader if needed but otherwise it should do the trick.
Related
I have a WordPress website, I want to show one of its pages in desktop view even on mobile devices. So my question is how to force desktop view for specific pages on a mobile device (WordPress)
You could try to change the meta tags as discussed here: SO: How to force desktop view on mobile devices - Bootstrap?
To change the meta tags for specific pages, you can create a custom page template, or maybe use a plugin (for example: Meta tag manager)
Maybe you can also force things with custom CSS for that page, by giving the content container (ex. .entry-content) some rule like: min-width: 1024px;?
I'm creating a custom theme for a Wordpress website for my client.
As far as I held the theme on my localhost wordpress website, everything was fine - when let's say browsing the home page and clicking on the link, a specific subpage was loaded from start to finish - it was totally okay.
Now, on the client's website my theme works like this: When browsing the homepage and clicking on the link, instead of loading the page, Wordpress adds its content under the content of the homepage and it seems like its doing it without reloading. In order to see only the content of the subpage, I need to refresh the page.
Plugins installed:
Activity Log for MainWPAdvanced Custom Fields Alpine PhotoTile for
Google Plus and Picasa Block Bad Queries (BBQ) Contact Form 7 Display
Posts Duplicator Google Analytics for WordPress by MonsterInsights
MainWP Child Jetimpex Dashboard Plugin Security Scanner Really Simple
SSL Remember Me Controls Site Kit od Google Sucuri Security -
Auditing, Malware Scanner and Hardening UpdraftPlus WordPress
Importer
Explanatory image:
You can use Ajax, for example,
Home
about
contact
23 is the page id home, 24 for about and ...
then you create a javascript file and write a javascript code that when the user clicks the link, the ajax trigger and send data-id to backend.
So, create a function PHP in backend and get data with page id and return the content with wp_send_json...
below link helps you implement an ajax in WordPress:
How to call ajax in wordpress
I need some help please.
I'm trying to building a blog site but I want to maintain my own page layout and styles. I only want to embed the blog post to appear in the div provided. I will also need a way I can always update the blog post through an admin login page.
I tried using wordpress but it didn't allow me to use my own layout and style, rather i have to use their theme.
Which method or framework will you best suggest.
Here is the link for what I'm trying to do.
www.fortwebtech.com/blog2.html
Iam trying to design a android app of my wordpress website www.pocketdoctors.in which is a Listings page(Not a Blog) so Iam using webview as main concept in my app but a lot of changes has to be made for an app view like Removing header and footer and menus etc. on App alone. Changes should not show up in Mobile browser.
Thank You If any One helped
Q: Have you considered just making your Wordpress site mobile friendly?
WPTouch is one alternative.
Here are some others:
http://crunchify.com/top-3-wordpress-plugins-to-make-your-site-mobile-friendly/
My client wants to use Gravity Forms to create forms - he is giving department managers access to the WordPress dashboard, then each manager will go in and create forms. No problem there.
But, the client has a special interface for end-users (members) that is OUTSIDE of WordPress. He would like to have the forms created using Gravity Forms to be displayed in this interface. I can create shortcode or use the function 'gravity_form()' to call the forms, but then they are always displayed with the WordPress headers/layout/etc.
Is there a way I can access and display JUST the form? (I've tried doing something similar to how the preview is displayed when you click the 'preview' option while creating the form. But, I get the 'this is a preview' message).
You might try the following add-on which generates an iframe you can use to display the form on pages outside WordPress:
Gravity Forms Iframe Add-on
The typical process to embed a Gravity Form on a site where the plugin isn't installed requires:
Developing a custom page template with necessary code to output form scripts and styles.
Creating a new page in WordPress.
Inserting the form shortcode in the new page.
Manually writing an iframe tag with the page permalink and giving it a static height.
With the Gravity Forms Iframe add-on, just enable a setting to allow the form to be embedded and copy the code snippet. That's it. As a bonus, the iframe automatically resizes whenever the form height changes -- for instance, when fields are shown or hidden due to conditional logic.