IASR
Forum Replies Created
-
Forum: Plugins
In reply to: [WP REST API (WP API)] Filtering for slug (post slug)Just wanted to thank Pimo – this worked like a charm for me!
Forum: Fixing WordPress
In reply to: is_page failure on responsive designWorked out a solution! It’s a little jQuery function that leans heavily on WordPress’ body classing system:
function mobileCurrentPage() { var page = $('body'); if ( page.hasClass('page-id-54') ) { $('.about_link a').addClass('current'); } else if ( page.hasClass('page-id-512') ) { $('.bios_link a').addClass('current'); } else if ( page.hasClass('page-id-42') || page.hasClass('single-case_study') ) { $('.results_link a').addClass('current'); } else if ( page.hasClass('page-id-80') || page.hasClass('single-post') ) { $('.blog_link a').addClass('current'); } else if ( page.hasClass('page-id-485') ) { $('.connect_link a').addClass('current'); } else { } }But if anyone has a suggestion as to why the php is failing, I’d love to hear.
Forum: Plugins
In reply to: Chrome bug with flexslider pluginA bit more poking around has revealed this to be an issue with Chrome: https://github.com/woothemes/FlexSlider/issues/519
This makes sense, as I am on a tablet-enabled laptop with touch support.
A quick & dirty fix is to use the dev branch: https://github.com/woothemes/FlexSlider/tree/develop
The touch issue seems to have been sorted out, and I am not having any problems: http://iamshawnrice.com/demo/handcrafted/
The main point to be taken from this, the woo themes devs are aware of the issue and will be remedying it soon.
Forum: Fixing WordPress
In reply to: Page with custom fields and a loop of postsThanks for the reply.
I worked out a less elegant but just as effective solution:
Using `<?php
$post_id = 175;
$queried_post = get_post($post_id);
$content = $queried_post->post_content;
$content = apply_filters(‘the_content’, $content);
$content = str_replace(‘]]>’, ‘]]>’, $content);
echo $content;
?>`
to print content from individual posts, I just injected them into the page template. Not the cleanest fix, but it works.Forum: Plugins
In reply to: Unique breadcrumb issueSo I worked out a fairly inelegant but good enough solution: I copied the template file used for the ‘writings’ page, saved it as category-writings, and then threw in a breadcrumb plugin (Yoast Breadcrumbs to be exact).
Forum: Themes and Templates
In reply to: Styling loop content with cssI am using starkers modified with custom CSS.