• Resolved rokasgl

    (@rokasgl)


    Hi.

    We have shortcode: [vikrentcar category_id=”” orderby=”price” ordertype=”asc” lim=”20″ view=”carslist”]

    And we want to show only one category of cars in particular page. Where can I get category ID ? Looks like it isn’t equal to category name.

Viewing 1 replies (of 1 total)
  • Plugin Author e4jvikwp

    (@e4jvikwp)

    Hi,

    If you use the Shortcode interface of Vik Rent Car, you will not have to manually fill or guess the category ID you want to force. Also, that’s an ID, not a name.

    You can easily identify the ID of the category from the back-end. Just click the name of an existing category to access its editing page, and if you pay attention to the URL, the number next to &cid[]= will be the ID of the category.

    However, as we said, it is wrong to manually fill or guess the ID of a category in Vik Rent Car, because you need to have a Shortcode with that exact signature/code saved in Vik Rent Car, in order for our plugin to detect when you use it inside a WordPress page/post.

    We strongly recommend to create an apposite Shortcode from Vik Rent Car by selecting the category you want to force. This will save a Shortcode record with a signature/code that indicates the actual ID for the attribute “category_id”. At this point you can let our plugin create a page/post that contains that Shortcode, or you can copy it and paste it manually inside the content of a page. This way the shortcode in Vik Rent Car will become connected to a WordPress page/post ID, and all routing functions will work properly.

    We hope this helps!

    The VikWP Team

Viewing 1 replies (of 1 total)

The topic ‘Category ID’ is closed to new replies.