Support » Plugin: Custom Category Templates » (.*)$|mi', file_get_contents( $full_path ), $header ) )

  • First of all: very simple but extremely usefull plugin!
    I’m using the Custom Category Templates plugin on the ‘Responsive’ theme out of the repository.
    In the dropdown list I can see the standard and custom templates, but there is also a line that says: (.*)$|mi’, file_get_contents( $full_path ), $header ) )
    Any idea what’s causing this?

    Thanx.

    http://wordpress.org/extend/plugins/custom-category-templates/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi! I know this is old, but the plugin works perfect except for this…

    So @ line 146 on v0.2:

    if ( ! preg_match('|Category Template: (.*)$|mi', file_get_contents($full_path), $header) )

    …change to (replace with where in your theme you put the file)…

    if( $file == 'inc/category-templates.php' || !preg_match('|Category Template: (.*)$|mi', file_get_contents($full_path), $header) )

    Best!

    Old, but it might come in handy. Thanx!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘(.*)$|mi', file_get_contents( $full_path ), $header ) )’ is closed to new replies.