• Resolved cag8f

    (@cag8f)


    Hello. I would like to know if your plugin can help me resolve my issue. On my site (https://www.everasia.com/), my theme defines a particular custom post type (“property”). Attached to this custom post type are two different custom taxonomies: ‘property-type’ (with allowed values of property and land), and ‘sale-type’ (with allowed values of sale and rent).

    Currently, every one of these custom posts has a URL of the form:

    https://www.everasia.com/property/{property name}/

    I would like to change the permalinks to that each ‘property’ has one of three different URLs:

    Houses for sale have the URL: https://www.everasia.com/property-for-sale/{property name}/
    Houses for rent have the URL: https://www.everasia.com/property-for-rent/{property name}/
    Land for sale has the URL: https://www.everasia.com/land-for-sale/{property name}/

    Would it be possible to do this using your plugin? The devs for the Custom Permalinks plugin said your plugin would be more suited for my issue (see forum post here).

    Thanks in advance.

Viewing 11 replies - 16 through 26 (of 26 total)
  • Thread Starter cag8f

    (@cag8f)

    OK good idea. I did that, and the issue seems to be resolved–both posts have URLs containing the parent only. Let’s consider this resolved then–thanks!

    Thread Starter cag8f

    (@cag8f)

    Actually, so sorry, but I’m doing some more testing and the same issue is arising. This time I have set the ‘Properties’ slug field to:

    <%ctax_property_type%>-<%ctax_property_status%>/%postname%/

    But the URL is using both parent and child–and it is using parent twice:

    property/commercial-property-for-sale/house1/

    screenshot

    Thoughts on this? This is a brand new property I’ve created.

    Plugin Author Sami Ahmed Siddiqui

    (@sasiddiqui)

    Hi,

    First of all thanks for your plugin. It is really great and powerful!

    I have read this topic and it corresponds exactly to my need, which is more or less the same as @gac8f, but simpler. We also seem to be using the same theme so it should help.

    I do not have nested taxonomies. Only Property/type, Property/Status, Property/city.

    What I need to do is simply to generate the relevant property type/status/city/name for each property. Ex: site.com/villa/rent/city/propertyname
    So I added: <%ctax_property_type%>/<%ctax_property_status%>/<%ctax_property_city%>/%postname%/
    to the PostTypes Permalinks Settings for Property.

    It seems to work, but only after I edit each property and manually click on Regenerate Permalinks. It therefore creates a redirect for each property created then manually Regenerated.

    I have tried with a brand new property created after the settings were saved and I still need to Regenerate Permalinks manually for the correct slug to appear as
    site.com/villa/rent/city/propertyname.
    Else it shows by default as: site.com/property/propertyname.

    Grateful if you could help.
    Thanks!

    • This reply was modified 6 years, 4 months ago by cocool.
    Plugin Author Sami Ahmed Siddiqui

    (@sasiddiqui)

    Hi @cocool

    To regenerate permalink of many posts you can go to the All Post page. There is a drop down which contains Bulk Action, open that drop down and select the option of Regenerate Permalink and select the posts for which you wants to regenerate the new permalink. Where as concerned to add redirects manually for the newly permalinks so, you just don’t need to worry about that. Redirects automatically created by this plugin when the new permalink is generated.

    Let me know if you have any other question.

    Thanks,
    Sami

    Hi Sami,

    Thanks for your reply.

    Actually I do not want to have to manually Regenerate Permalinks.
    From what I understand, the newly set permalink structure should automatically apply to all new posts created without having to go through manually Regenerate Permalinks each time. Is that correct?

    So if I set: <%ctax_property_type%>/<%ctax_property_status%>/<%ctax_property_city%>/%postname%/
    to the PostTypes Permalinks Settings for Property
    should not all new posts automatically show slugs such as:
    site.com/villa/rent/city/propertyname
    and not
    site.com/property/propertyname?

    • This reply was modified 6 years, 4 months ago by cocool.
    • This reply was modified 6 years, 4 months ago by cocool.

    Hi,

    Grateful if you could reply to my query since we need to info to be able to proceed with the plugin or not.

    Thanks a lot!

    Plugin Author Sami Ahmed Siddiqui

    (@sasiddiqui)

    Hi @cocool,

    Thanks for using this plugin and pointing this issue.

    I’ll add this feature in the upcoming release and would update you about it.

    Thanks,
    Sami

    Plugin Author Sami Ahmed Siddiqui

    (@sasiddiqui)

    Hi @cocool

    I have released the new version which may fixes your issue. Please have a look and provide your feedback on it.

    Thanks,
    Sami

    Hi Sami,

    Thanks a lot. It works perfectly well now!

    Plugin Author Sami Ahmed Siddiqui

    (@sasiddiqui)

    Thanks for the feedback.

    Have a good day..!

Viewing 11 replies - 16 through 26 (of 26 total)
  • The topic ‘Can your plugin create custom URLs for my custom post type?’ is closed to new replies.