• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Change pagination slug

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Change pagination slug

This topic is: not resolved

Tagged: Enterprise, pagination, slug

  • This topic has 5 replies, 4 voices, and was last updated 6 years, 9 months ago by Joepiooo.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • June 15, 2016 at 10:55 am #187594
    Joepiooo
    Member

    Hello,

    I'm using Genesis and as Childtheme Enterprise Pro. I love them both but I have one question about pagination slug in posts section.

    On this page it now is

    https://www.hostingportaal.nl/nieuws/page/2/

    I want the slug to be:

    https://www.hostingportaal.nl/nieuws/pagina/2/

    Is it possible to change the slug with a hook or something?
    Would like to know how I can change this.

    Help would be very welcome.

    Thanks!

    Kind regards,
    Joep

    https://www.hostingportaal.nl/nieuws
    June 21, 2016 at 8:54 am #187948
    Brad Dalton
    Participant

    Try this https://wpml.org/forums/topic/translate-url-for-pagination/


    Tutorials for StudioPress Themes.

    June 21, 2016 at 10:58 am #187956
    Joepiooo
    Member

    Hello,

    Thank you for your reply. I'm not using WPML so... Just WordPress and Genesis.

    This should not be so hard... Anyone else had an idea? 🙂

    Kind regards,

    Joep

    June 22, 2016 at 4:41 am #188002
    Victor Font
    Moderator

    Try adding this to functions.php:

    add_action( 'init', 'permalink_rewrite' );
    function permalink_rewrite() {
    	global $wp_rewrite;
    	$wp_rewrite->pagination_base = 'pagina';
    }

    If the above doesn't work, you could also try:

    add_action( 'init', 'permalink_rewrite' );
    function permalink_rewrite() {
    	global $wp_rewrite;
    	$wp_rewrite->pagination_base = strtolower( _x( 'page', 'pagina', 'theme-translation-slug' ) );
    }
    

    After adding either of these to functions.php, you have to re-save permalinks.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    June 22, 2016 at 5:34 am #188003
    Audmaus
    Member

    It's working for me now, thanks

    June 22, 2016 at 11:11 am #188031
    Joepiooo
    Member

    Hello Victor,

    Your my hero! Thank you very very much! Working like a charm!

    I tried the first option and it worked.

    Kind regards,

    Joep

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble