Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Allen

    (@amweiss98)

    Hi,
    Right now, the plugin doesn’t support using more than 1 template (even though you can customize that template). But this is a good suggestion and I’ll see if there is a way to make it so you can use more than one template.
    Allen

    Thread Starter deewilcox

    (@deewilcox)

    I was just looking at your code for template_functions.php. What if we added a category field for the DB record? And checked by that?

    Plugin Author Allen

    (@amweiss98)

    yeah…that’s possible..it’s likely that it would need a shortcode parameter, however, so I’ll need to think about that..unless you want to code it ??

    Thread Starter deewilcox

    (@deewilcox)

    You obviously know the plugin much better than I do, but I just might give it a shot. If it works, I’ll let you know.

    Plugin Author Allen

    (@amweiss98)

    actually, the easiest way to do this is as follows:

    go into the main wp-rss-multi-importer.php file and add a shortcode parameter to overrwide the $template variable…then put in the shortcode using the new parameter (it would have to be the precise php file name) and that should work.

    If you want, email me at
    https://www.allenweiss.com/contact

    and I can send you a revised file that should do the trick without having to change the db

    Thread Starter deewilcox

    (@deewilcox)

    This line?
    $template=$options['template'];

    Thread Starter deewilcox

    (@deewilcox)

    Went with this. Works beautifully!

    if ($thisCat == 1){
    	$template=$options['template'];
    }
    else {
    	$template = 'default.php';
    }
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Different Templates for Different Categories?’ is closed to new replies.