Viewing 15 replies - 1 through 15 (of 16 total)
  • Hi Dddt,

    You shouldn’t be using “Browse Ads” to do category specific display. We have a shortcode to show the ads from a specific category (AWPCPSHOWCAT) and it’s documented here: https://awpcp.com/forum/faq/valid-awpcp-shortcodes-3-x/

    You can use that to show the ads from any category you want.

    Thread Starter Dddt

    (@dddt)

    Oh! That’s great!

    I followed the link but could not get what should I do. Can u give me some example?

    What does this mean?
    ————-
    AWPCPSHOWCAT: Shows listings in a specific category. It takes two parameters:
    id: The ID of the category (required).
    children: Whether listings in sub-categories of the selected category should be included in the results (default: true). id.’, array($this, ‘category_shortcode’));
    ———–

    Thanks in advance!

    Like any shortcode, you use it like this:

    [AWPCPSHOWCAT id=1 children=true]

    Where id is the id of the category you want to show (you can find that under Classifieds->Categories) and children= true or false, depending on whether you want to see sub-categories of that category or not.

    Thread Starter Dddt

    (@dddt)

    Ok, let me try it.

    Thanks again!

    Thread Starter Dddt

    (@dddt)

    hello there,

    I tried the shortcode put the children=false and this does not show me the ads inside categories ??

    when I put children=true it shows the ads inside. but only for 3 of them, the ads inside primart category “JOBS” are not visible and it shows sub-categoriess which I do not want.

    my aim is to show only the ads inside the 4 main categories without above menu buttons and subcategories.

    I hope u can help me

    Thread Starter Dddt

    (@dddt)

    I forgot to mention that subcategories are shown in expanded form

    What shows up in the categories depends on what ads you have in the system. Let’s try an example here:

    Suppose you have 2 categories:

    Parent (10)
    +—–Child (20)

    Parent is the top level category with an ID of 10. Child is the um, child category with an ID of 20. ??

    Suppose you have 4 listings: 1 and 2 are in Parent. 3 and 4 are in Child.

    If you use AWPCPSHOWCAT id=10 children=true, you’ll see 4 listings. If you use children=false, you’ll only see 2 listings (1 and 2)

    Since I don’t know much about the specific listings you’re seeing and their categories, I don’t know how to map what you’re seeing to how it works. But it sounds like you have listings under a child category (like 3 and 4) and you aren’t seeing them with children=false, which is correct if you’re using the parent category.

    Does that help?

    Thread Starter Dddt

    (@dddt)

    the matter is that my parent categories are disabled to have ads in it, only children categories have.

    so, parent category ID=10 which, in its turn has ten children categories with ten different IDs – ID=1, ID=2, ID=3…, my aim is to show the ads (content) of that very 10 children categories as my Parent category is disabled to have ads.

    I suggest the formulated shortcode should be AWPCPSHOWCAT id=1 id=2 id=3cand so on.. including all 10 ids, and what about the parameter children? since the ids presented above are for children categories

    thanks ??

    Thread Starter Dddt

    (@dddt)

    noe I put AWPCPSHOWCAT id=10 but the shortcode does not work as on page it says there are no ads, but in fact there are ads under the children category of parent category 10 (10 is a parent category which has ads in it under its children category)

    In your case, you need to use this:

    [AWPCPSHOWCAT id=10 children=true]

    Or you can use

    [AWPCPSHOWCAT id=1,2,3]

    Either should work. The first is slightly easier to maintain if you plan to add more categories in the future under the parent one (10).

    Thread Starter Dddt

    (@dddt)

    no this shows the subcategories too, I need only its content

    Thread Starter Dddt

    (@dddt)

    I have tries as many version as I could, does not work, using the code [AWPCPSHOWCAT id=1,2,3,4,5,6,7,8,9,10] does not show any content in it.

    the shoertcode [AWPCPSHOWCAT id=10 children=true] shows the subcategory menu and shows that category 10 is empty, but actually it is not empty. I just need the content under the parent category 10 without subcategory menu on page

    Thread Starter Dddt

    (@dddt)

    is there any way to assign one ad to multiple categories? so I can assign the jobs subcategories to job parent category and will use the shortcode [AWPCPSHOWCAT id=10 children=false] which will not show subcategory menu on page and will show every single ad as it will also be assigned to parent category

    Hi Dddt,

    I’m not sure I understand what you mean by “no this shows the subcategories too, I need only its content ” What do you mean by content here?

    Can you show me the page you have setup for this?

    We don’t support multiple categories on an ad–that’s something we’re looking to add, but it’s not possible today unfortunately.

    Thread Starter Dddt

    (@dddt)

    I will try to send snapshots, if u give me email I will send it sooner

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘specific category content’ is closed to new replies.