WordPress.org

Ready to get started?Download WordPress

Forums

EG-Series
Custom permalinks with EG-Series (3 posts)

  1. Eduardo Larequi
    Member
    Posted 2 years ago #

    First of all, thanks for this plugin. I've used other series plugins, like Series and Organize Series, and I'm sure EG-Series is by far the best in terms of cost-efficiency.

    I want to use your plugin in a project of school magazine based on series. Please look at http://centros.educacion.navarra.es/devcursos/revista2/. Until now, this website uses Justin Tadlock's Series plugin, with a little change in the permalink of each magazine issue. For example, http://centros.educacion.navarra.es/devcursos/revista2/numero/numero-3/, with "numero" ('issue') instead of the original "series".

    With Justin Tadlock' Series plugins this is very easy to achieve, by changing line 86 of the series.php file:

    from array( 'slug' => 'series' ) );

    to array( 'slug' => 'numero' ) );

    I would like to get a similar result with EG-Series, but its code is much more complicated and my PHP skills are very limited. Any idea?

    Thanks in advance.

    http://wordpress.org/extend/plugins/eg-series/

  2. EmmanuelG
    Member
    Plugin Author

    Posted 2 years ago #

    Hi

    Two ways to do that

    First way:
    In the file eg-series.php, line 36, you can replace define('EGS_TAXONOMY','series'); by define('EGS_TAXONOMY','numero');
    It will replace series by numero everywhere (except some labels).

    Second way:
    In the file inc/eg-series-core.php, line 107, you can replace array( 'slug' => EGS_TAXONOMY ) by array( 'slug' => 'numero')

    Just proceed with only one of these changes, and it should work.

    Emmanuel.

  3. Eduardo Larequi
    Member
    Posted 2 years ago #

    I have chosen the second alternative, Emmanuel. Works like a charm (but for the moment not in the site mentioned in my first post, bacause I have to make some additional tests).

    Thank you, thank you very much.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic