Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    when you say changed rewrite slug, do you mean the very first field when editing the post type via CPTUI? or do you mean the one roughly halfway down the page with the “rewrite slug” field. I’m curious if you managed to find a way to have both URLs query for the same post in the database.

    Also if you could use the Tools > Debug Info panel from CPTUI menu to paste me your debug info, that’d help me visualize what you have and what the setup is.

    Thread Starter Milan.Nikolic

    (@milannikolic)

    I mean field called “Custom Rewrite Slug”.

    Here’s debug info:

    ### Begin Custom Post Type UI Debug Info ###

    Multisite: No

    SITE_URL: https://dev-pokies.pantheonsite.io
    HOME_URL: https://dev-pokies.pantheonsite.io

    WordPress Version: 4.7.4
    Permalink Structure: /%postname%/
    Active Theme: blankslate-child 1.0.0

    Registered Post Types: post, page, attachment, revision, nav_menu_item, custom_css, customize_changeset, acf, wpcf7_contact_form, bookmakers

    PHP Version: 5.5.24
    MySQL Version: 5.5.5
    Web Server Info: nginx/1.8.1

    Show On Front: page
    Page On Front: Homepage (#25)
    Page For Posts: → (#0)

    WordPress Memory Limit: 40MB

    TOTAL PLUGINS: 14

    MU PLUGINS: (1)

    Pantheon: 0.1

    ACTIVE PLUGINS: (13)

    Advanced Custom Fields: 4.4.11
    Advanced Custom Fields: WP WYSIWYG: 1.0.1
    Breadcrumb NavXT: 5.7.0
    Contact Form 7: 4.7
    Custom Post Type UI: 1.5.3
    FV Top Level Categories: 1.8.2
    Max Mega Menu: 2.3.6
    PHP Code Widget: 2.3
    Q2W3 Fixed Widget: 5.0.4
    Regenerate Thumbnails: 2.2.6
    Universal Star Rating: 1.10.3
    WP Migrate DB: 0.9.2
    Yoast SEO: 4.7.1

    INACTIVE PLUGINS: (1)

    All In One Schema.org Rich Snippets: 1.5.1

    Post Types:
    {“bookmakers”:{“name”:”bookmakers”,”label”:”Bookmakers”,”singular_label”:”Bookmaker”,”description”:””,”public”:”true”,”publicly_queryable”:”true”,”show_ui”:”true”,”show_in_nav_menus”:”true”,”show_in_rest”:”false”,”rest_base”:””,”has_archive”:”false”,”has_archive_string”:””,”exclude_from_search”:”false”,”capability_type”:”post”,”hierarchical”:”false”,”rewrite”:”true”,”rewrite_slug”:”casino”,”rewrite_withfront”:”true”,”query_var”:”true”,”query_var_slug”:””,”menu_position”:””,”show_in_menu”:”true”,”show_in_menu_string”:””,”menu_icon”:””,”supports”:[“title”,”editor”],”taxonomies”:[],”labels”:{“menu_name”:””,”all_items”:””,”add_new”:””,”add_new_item”:””,”edit_item”:””,”new_item”:””,”view_item”:””,”view_items”:””,”search_items”:””,”not_found”:””,”not_found_in_trash”:””,”parent_item_colon”:””,”featured_image”:””,”set_featured_image”:””,”remove_featured_image”:””,”use_featured_image”:””,”archives”:””,”insert_into_item”:””,”uploaded_to_this_item”:””,”filter_items_list”:””,”items_list_navigation”:””,”items_list”:””,”attributes”:””},”custom_supports”:””}}

    Taxonomies:
    []

    ### End Debug Info ###

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Not sure I’m managing to recreate.

    I have imported the post type settings.

    I have this as my one post type in the bookmakers post type:
    https://wds.test/casino/test-post/
    For that post type post’s content, I have “THE BOOKMAKER POST TYPE”

    I also have a page at:
    https://wds.test/bookmakers/
    It’s got a page content of “THE PAGE”

    Not finding any urls where the the content is the same. Since the post type is not set to have an archive, it’s likely not an issue there.

    Thread Starter Milan.Nikolic

    (@milannikolic)

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    They’re definitely being interpreted as the same content. I grabbed these from the view source of both:

    https://dev-pokies.pantheonsite.io/casino/bitcasino-io/
    <link rel=”canonical” href=”https://dev-pokies.pantheonsite.io/casino/bitcasino-io/&#8221; />
    <body class=”bookmakers-template-default single single-bookmakers postid-13 mega-menu-main-menu”>

    https://dev-pokies.pantheonsite.io/bitcasino-io/
    <link rel=”canonical” href=”https://dev-pokies.pantheonsite.io/casino/bitcasino-io/&#8221; />
    <body class=”bookmakers-template-default single single-bookmakers postid-13 mega-menu-main-menu”>

    Canonical links both point to the same one, and body classes indicate both are interpreted as a single post from the post type.

    Not quite sure what to tell ya with this one, to be honest. It’s coming from how WP handles things internally with post types and other content, more than how CPTUI does anything.

    Thread Starter Milan.Nikolic

    (@milannikolic)

    Ok, thank you very much for your help!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘duplicate content when I change slug’ is closed to new replies.