Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Forum: Plugins
    In reply to: mTouch Quiz Not Working

    Hello – I might be having the same problem as shootingparrots. I’m hoping I’m just missing something obvious. Here’s my link: http://bit.ly/snV8mL

    I had it working… then it stopped working. Then I fiddled with the lines for enqueue script, and it started working again. But now, after a week of not looking at it, it is again not working. And by “not working” I mean that the questions do not appear.

    I thought is was my fancy custom theme… but even switching to the default twenty11 theme has the same issue.

    henkholland and iconico:

    Take a look at this:
    http://codex.ww.wp.xz.cn/Theme_Development#Query-based_Templates

    You would turn your single.php into a conditional splitter that assigned all your posts to your custom single pages by category. So your single.php file would only contain:

    <?php $post = $wp_query->post;
    if ( in_category('31') ) {include(TEMPLATEPATH . '/single-custom1.php');}
    elseif ( in_category('19') ) {include(TEMPLATEPATH . '/single-custom2.php');}
    elseif ( in_category('172') ) {include(TEMPLATEPATH . '/single-custom3.php');}
    else {include(TEMPLATEPATH . '/single1.php');}
    ?>

    and then single-custom1.php (name it whatever you want of course) would call in posts from just that category so you could modify your previous/next code as you wish.

    The last bit, else {include…} single1.php means that any post that didn’t have a specific category would get the default single post template, here named single1.php but the name could be anything.

    Hope that helps!

    I think I had the same problem as you, munfaridon. Could edit/save my posts/pages a week ago but then today got the blank screen and nothing saved when I went to save/publish. I upgraded to 2.5 (from 2.1! A very long time coming… serves me right I suppose…) and now all is OK. You may have figured this out already but let me know if this works for you!

Viewing 4 replies - 1 through 4 (of 4 total)