WordPress content-only custom templates (with plugin javascript (etc) still being loaded)

Today I spent a fair while on a quest to display only page content on a WordPress site of mine. The situation is that I’m trying to make a very easily updated marketing website for an online-learning project of mine. I like using a proprietary page slider for WordPress (and other platforms, excluding my Moodle e-learning platform). So, hacky as it is, I opted to spin up a dedicated WordPress site that’d just host the sliders in content-only custom theme template files. Of course, this mandated rolling up the sleeves.

The central problem ended up being that my proprietary wordpress plugin installs some Javascript stuff it needs. I could have tried to figure out how to manually install that stuff, but I wanted something that’d inherit updates of WordPress and the plugin. I’ve found a few examples of doing custom theme templates that show only content, but they lacked the necessary guts to get plugin junk loaded. I’ve adapted those bare-bones templates I’ve seen, along with code selectively cut from my theme’s other files (theme is TwentyFourteen).

Here’s my custom theme page:

Read more “WordPress content-only custom templates (with plugin javascript (etc) still being loaded)”

My Diary: on running PHP 5.5+ & Apache 2.4 on Ubuntu 12.04

I’ve been working on migrating a Moodle 2.4+ installation from a rickety old Ubuntu 10.04 server on Amazon EC2 to a fresh machine as I can’t seem to update the original server to 12.04, which has newer PHP packages I require to run Moodle 2.6+, which I want specifically due to a user stats plugin I want installed.. So with one thing leading to another, I ran aground recently when I upgraded Ubuntu’s 12.04 Apache2 version to Apache 2.4 (from some PPA). This resulted in my site no longer working, it pretty much just said access denied. This was due to some new Apache security setting that my migrated Virtual Host config lacked.

Should I run in to later, I’m throwing down steps I’ll follow to avoid the same ice bergs that costs me to burn a little more coffee than I’d prefer….

Step 1) Install PHP5.5/Apache2.4 via PPA:  sudo add-apt-repository ppa:ondrej/php5;sudo apt-get update;apt-get -y upgrade

Step 2) Check VHost Config’s Directory sections, add  Require all granted  if not present.

Here’s the key stuff I used to find this approach in the first place: http://askubuntu.com/questions/109404/how-do-i-install-latest-php-in-supported-ubuntu-versions-like-5-4-x-in-ubuntu-1