Home Support Themes ListingHive permalink

permalink

  • Author
    Posts
  • kandwal1

    can i remove listing from my link
    https://pakhome.com.pk/listing/cozy-central-studio/
    i mean i want to show it like that
    https://pakhome.com.pk/cozy-central-studio/

    gabetu

    It’s possible using a plugin (https://wordpress.org/plugins/remove-cpt-base/) or custom php code but rather I reccommend renaming the slugs using the code provided here https://hivepress.io/support/topic/permanent-link/ that would have as result something like:
    domain.com/ad/cozy-central-studio/ – for single listing
    domain.com/ads/apartments/ = for listings category

    kandwal1

    can you please guide me how to apply the code

    gabetu

    Use the code in the functions.php file of your child theme or if you don’t have a child theme you can use this plugin to apply custom codes: https://wordpress.org/plugins/code-snippets/

    kandwal1

    sir i have done with cpt plugin
    but old post are not going to open error not found
    and please tell me if there is any type of disadvantages
    thanks for your reply

    gabetu

    The plugin states that “auto redirect old slugs to no-base slugs”, try to clear cache of your browser and also clear cache of cache plugin if your using one.

    That’s why I reccommend rename the slugs instead of remove them, could lead to issues.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.