todc
Forum Replies Created
-
A hard refresh (CTRL-F5 in Chrome) fixed this for me. 🙂
Forum: Plugins
In reply to: [MC4WP: Mailchimp for WordPress] Pre-Populated Fields?iMazed, thanks for telling us about the update. Next time I edit my forms or implement it for a client I’ll give it a try.
Dank je!
Forum: Plugins
In reply to: [Super Simple Events] How to view events?Maybe this helps… from the plugin FAQs:
I am getting 404 pages when I go to a event page, how do I fix this?
This is an issue with WordPress code and registering custom post types. The url rewrite engine doesn’t recognise the url. A work around is to go to Settings > permalinks and press save changes. Just by saving changes, it will flush the rewrite rules and events should display.
Forum: Plugins
In reply to: [MC4WP: Mailchimp for WordPress] Pre-Populated Fields?This would be very useful and is supported by other form products.
Since I’m impatient, I tried to do it using PHP and got nowhere so I implemented it using jquery. From what I can tell most WordPress templates are using the jquery javascript library these days so there’s a good chance it will work for you, but it does take a little technical prowess.
It seems to work great. If the URL parameters don’t exist you get the placeholder text.
Here’s a few assumptions you’ll need:
- You know your way around WordPress and HTML. Strong coding skills not needed.
- You can add javascript to the head of your pages, or alternatively into the page with the form. (I added it to my entire site, I’ll probably use it now that it’s working.)
- You’re comfortable customizing the HTML hat makes up the MailChimp-for-WP form(s).
There’s two steps:
1. Add the javascript code that gets and parses the URL parameters.
Get this javascript code from stackoverflow: http://goo.gl/5DEPwU
Put the code code in your template. My theme gives me a place to add javascript to the head for things like Google Analytics. This also is likely pretty common. You could put the code on just the page you need it, or I guess even in the form itself. I didn’t test these alternatives but it should work.2. Add the following code to the top of your MailChimp for WordPress form, or somewhere else on the page.
<script> jQuery(document).ready(function($){ $( "input[name*='FNAME']").val(GetURLParameter('firstname')); $( "input[name*='EMAIL']").val(GetURLParameter('email')); }); </script>Add, remove and modify the lines that start with $( as you need for your URL parameters. FNAME and EMAIL are the names of the inputs in the form you want to prefill. firstname and email are the URL parameters, you can rename them to whatever you want as long as you’re consistent.
The first line stumped me. I’m used to the standard jQuery $( document ).ready(function() {… , but this apparently needs to be modified for WordPress. I don’t get it but it works so I’m happy. I’m not a coder, maybe a hacker at best. I’ve tested in on recent (as of 10/30/14) versions of Chrome (38), FF (32), and IE 11 and it seems to work great.
Forum: Plugins
In reply to: [List category posts] Posts without title has no linksSeems like having a customizable (“read more…” as the default perhaps) option that links to the post would be one way to implement this in a future release.