• Greetings, again with issues.
    In order to put some ordering in categories i stumbled upon a post which customized the advert text on the url but, i feel like i’m short on this.

    https://github.com/simpliko/wpadverts-snippets/blob/master/custom-slugs/custom-slugs.php

    Since i’m implementing a couple of things mentioned on other entries i have done, i am setting pages and sub pages with their short codes like:

    mydevelopment.site/category/subcategory

    And as soon as i get into the ad the url becomes

    mydevelopment.site/listing/the-posted-ad where listing is the result of the code of the custom slugs of that snippet.

    Should I add a page in order that the ad gets displayed into the pages structure or i might tweak that Snippet?


    By the way, when i set those custom strings at the slug when i want to see the ad, it goes blank, did i missed a step afterwards?

    Thanks in advance

    PS: Offtopic quick question: This link information
    https://wpadverts.com/documentation/custom-fields/

    Requires the paid Custom Fields Add on, or this info allows me to set them without it since my current need is basically Checkboxes and an additional text area?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    1. hmm i am not exactly sure what is your question? The URL paths you have right now seem to be working as expected, the “category” is a prefix for Advert Category Taxonomy and the “listing” is a prefix for Advert Custom Post Type.

    You do not need to create any pages in wp-admin / Pages, but if you want to have a custom layout for category or ad details page you can create in your current (child) theme file(s) taxonomy-advert_category.php or single-advert.php as explained here https://wpadverts.com/documentation/child-themes-and-templates/

    2. the page you linked to does not require any extensions, it explains how to use the API and the Custom Fields extension is basically an interface which uses the forms API explained in the article.

    Thread Starter johndoe01

    (@johndoe01)

    Thanks for the answer. Originally wanted that the route remains on the ad listing. e.g.:
    mydevelopment.site/category/subcategory/the-posted-ad

    Although requires some advanced PHP settings, i’ll keep it on hold since my client didn’t told me anything about that.

    Since for SEO consistency i thought that there was way to set the categories and children in the route instead of using pages and [adverts_list] shortcodes.

    Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    ok, in terms of SEO the best solution for category pages is to create the taxonomy-advert_category.php file as explained in the last message this will give you the most flexibility when setting the titles and meta for the category pages.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Slugs, Categories and Directory Structure’ is closed to new replies.