nwarmenh
Forum Replies Created
-
Forum: Hacks
In reply to: Auto-add post ID as a value in postmeta tableJackpot! You are my hero.
Thanks.
Aha! Didn’t even think about running shortcodes in there but it worked. (Or at least, will work once I figure out how to dynamically pass the post ID in the shortcode call… but that’s a question for them, not for you.
Thanks again for the quick answers!
Jackpot! That did the trick.
I’m happy now. ??
Thanks again!
Thanks for the speedy reply!
I followed your instructions but discovered that not only did the categories submenu not appear, but the All Forms and Add Form submenus completely disappeared too.
Deleted the plugin entirely, re-installed, re-rolled back, same issue.
Should I drop a table from my database?
Sorry, should have included that: 5.5.4.
Thanks for the reply.
Interestingly, after I started playing around with trying to write that code (Can register_post_type modify an existing post type’s slug if I hook it in with later priority? Am I just going to install Redirection and make my client do it manually?) I stumbled on the fact that it already works out of the box!
In other words, when I send a browser to:
mysite.com/locationname
it automagically redirects it to
mysite.com/locations/locationname
Good enough for me!
Any thoughts on this? What PHP function might I use to generate pagination links on a custom call to EM_Events::get?
Oops, forgot to link the live page example! Here. (But looking at the PHP is presumably more useful.)
My code is in those linked pastebins:
1. https://pastebin.com/HxMHQm5H
2. https://pastebin.com/PsRBc1wrThe first of my examples puts the EM code into a WP page template. (Live page here.)
The second of my examples uses the events-list.php EM template, but I can’t figure out how to call WP template functions that are usually called in the loop.
I am having the same issue in IE9 and Safari/Mac, including when I use Google’s viewer directly. It seems that the Google Doc Viewer incompatibility/flakiness has been around for a while.
Anyone out there have a bulletproof PDF embedding solution?