Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter mortadelo

    (@mortadelo)

    You win. I move forward. I’m impressed by WP support. You can keep answering to posts asking the same things over and over (and things already covered somewhere in the documentation) or to those popular posts asking for CSS help (yes, it seems this is a good place for CSS support, but for WP itself…). Good bye. Best wishes.

    Thread Starter mortadelo

    (@mortadelo)

    Anyone?

    Or use the Flutter plugin, that I have not installed/used but it seems that it lets you create different customized write panels and assign them to users depending on their roles (in the plugin’s page they list the integration with the Role Manager plugin as a feature).

    I think this is what I’m going to do, and just add the plugin that hides the dashboard to users (again, you need Role Manager to do this).

    Flutter
    Role Manager
    IWG Hide Dashboard

    Regards.

    Thread Starter mortadelo

    (@mortadelo)

    Well, this almost did the trick: making the loop show all posts from the state categorie and adding

    if ($region) {
    if (!in_category($cat)) continue;
    }

    won’t display posts that weren’t submitted to the current category or subcategory, so if you are browsing

    site.com/homes/new/?state=arkansas

    it will get all posts from arkansas and THEN hide all those that are NOT in category New.

    The problem, is that WP will still fetch ALL the posts from the state category and just HIDE some of them.

    So in order to avoid this unnecesary server load, my initial question is still open…

    But it seems I’m asking for the impossible.

    Thread Starter mortadelo

    (@mortadelo)

    Any suggestion?

    I’ve been trying to modify the query_posts with category conditional tags, as in

    if (is_category(homes)) { query_posts... }

    without success.

    Well, the problem is that, AFAIK, there is not something like IF or OR (||) for query_posts, just AND and IN:

    query_posts(array(
    'cat' => some_cats,
    'category__and' => array($some_cats),
    'category__in' => array($some_cats)
    ));

    OK, following the example from my first post, if a follow the link

    site.com/category/homes?state=arkansas

    I should get posts that are from the category Homes OR from any of its subcategories (New and Used) AND that also belong to the category Arkansas.

    With

    query_posts(array(
    'cat' => the_id_of_Homes
    ));

    I get posts from Homes and its subcategories (New and Used). With

    query_posts(array(
    'cat' => the_id_of_Homes,the_id_of_Arkansas
    ));

    I get posts from both Homes (and its subcategories) and posts from Arkanasas, BUT not posts from Arkansas that only belong to Homes or its subcategories (just ALL posts from Arkanasas), and the same will happen if I use the category__in option. With

    query_posts(array(
    'category__and' => array(the_id_of_Homes,the_id_of_Arkansas)
    ));

    I get posts that are from both Homes and Arkansas, BUT no posts from Homes’ subcategories. With

    query_posts(array(
    'category__and' => array(the_id_of_Homes,the_id_of_Homes_subcategories,the_id_of_Arkansas)
    ));

    I’ll get nothing since it will try to find posts that belong to ALL those categories, what is unlikely.

    So… any idea on how to get posts that are from the category Homes OR from any of its subcategories (New and Used) AND that also belong to the category Arkansas? Any advice would be very much appreciated.

    Oh, and sorry for the long post, but writing all this is helping me to better understand what I’m doing or trying to do. Hope you dont mind.

    Regards.

    I want to let members post without access to the admin panel and I thought TDOMF would be the best way… why not? Why didn’t you like it?

    Regards.

    There is a plugin: TDO Mini Forms. I haven’t tried it, but it may be what you are looking for.

    Regards.

Viewing 7 replies - 1 through 7 (of 7 total)