• The process is pretty easy to explain. I have 3025 pages. 1 of those pages contains a questionnaire. The remaining 3024 pages are results pages. If a person were to complete the questionnaire, their answers are analyzed and they are routed to a page, based on how they scored. Each of the 3024 results pages displays a graph, identifying how the EU scored in a specific set of categories.

    The URLs of all these pages are in the following format:

    
    https://domain.tld/results-10-Digit-Number
    https://domain.tld/results-##########
    https://domain.tld/results-1111000001
    https://domain.tld/results-1111000002
    https://domain.tld/results-1111000003
    https://domain.tld/results-1111000004
    

    These results are based on actuarial data, so some of the results pages need to use URLs with “results-0?????????” such as:

    
    https://domain.tld/results-0001111001
    https://domain.tld/results-0001111002
    https://domain.tld/results-0001111003
    https://domain.tld/results-0001111004
    

    However, WordPress will not allow the “-0” number. In fact, WordPress truncates all zeros after the “-” until the first non-zero number.

    The problem with this is that data is predefined by an actuarial calculation and the form routes the EU to a URL based on scoring.

    How do I get the zeros to remain in place after “https://domain.tld/results-“?

    Why does WordPress not deem “https://domain.tld/results-0001111001” a valid URL?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter bamajr

    (@bamajr)

    I’ve also noticed the slug is getting truncated, on import.

    I’ve tried a number of things to eliminate this problem, but it seems to be an issue with WordPress itself.

    1. I’ve tried eliminating the dash, after the word “results”
    2. I’ve tried eliminating the word “results” and the dash
    3. I’ve tried eliminating the word “results” and the dash, then adding a preceding “9”

    I don’t get it…

    Why does this code:

    
    	<item>
    		<title>91111000001</title>
    		<link>https://wetakeitlive.io/91111000001/</link>
    		<pubDate>Mon, 19 Sep 2016 12:00:00 +0000</pubDate>
    		<dc:creator><![CDATA[bamajr]]></dc:creator>
    		<guid isPermaLink="false">https://wetakeitlive.io/?page_id=1001</guid>
    		<description></description>
    		<content:encoded><![CDATA[[wp_charts title="barchart" type="bar" align="alignleft" margin="5px 20px" datasets="3.78,3.16,2.88,3.59,4.69,4.21,4.55" labels="Brain Health,Problem Solving,Support Groups,Take a Break,Education,Change Your Thinking,High-Powered Combinations" scaleoverride="true" scalesteps="7" scalestepwidth="1" scalestartvalue="0" scaleFontSize="16" canvaswidth="920px" canvasheight="460px" relativewidth="2" width="920px" height="460px"]]]></content:encoded>
    		<excerpt:encoded><![CDATA[]]></excerpt:encoded>
    		<wp:post_id>1001</wp:post_id>
    		<wp:post_date><![CDATA[2016-09-19 07:00:00]]></wp:post_date>
    		<wp:post_date_gmt><![CDATA[2016-09-19 12:00:00]]></wp:post_date_gmt>
    		<wp:comment_status><![CDATA[closed]]></wp:comment_status>
    		<wp:ping_status><![CDATA[closed]]></wp:ping_status>
    		<wp:post_name><![CDATA[91111000001]]></wp:post_name>
    		<wp:status><![CDATA[publish]]></wp:status>
    		<wp:post_parent>0</wp:post_parent>
    		<wp:menu_order>0</wp:menu_order>
    		<wp:post_type><![CDATA[page]]></wp:post_type>
    		<wp:post_password><![CDATA[]]></wp:post_password>
    		<wp:is_sticky>0</wp:is_sticky>
    		<wp:postmeta>
    			<wp:meta_key><![CDATA[_edit_last]]></wp:meta_key>
    			<wp:meta_value><![CDATA[1]]></wp:meta_value>
    		</wp:postmeta>
    		<wp:postmeta>
    			<wp:meta_key><![CDATA[_wp_page_template]]></wp:meta_key>
    			<wp:meta_value><![CDATA[default]]></wp:meta_value>
    		</wp:postmeta>
    	</item>
    

    …create a page with the URL of https://wetakeitlive.io/911110-1 and a slug of 911110-1, instead of a URL of https://wetakeitlive.io/91111000001/ and a slug of 91111000001?

    Thread Starter bamajr

    (@bamajr)

    Oh, and BTWs…

    If I create the pages, one at a time, the URL and Page-Slug work correctly.

    Thread Starter bamajr

    (@bamajr)

    This issue exists in both versions of WordPress (Standard & Multi-Site) and exists in brand new installs with default 2016 theme.

    It happens with both Page Name and Permalink

    Why this happens is mind boggling. Why doesn’t the WordPress import honor the import file’s declaration of Title/URL?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘URLs Changed During XML File Import’ is closed to new replies.