• Resolved TruthMerchant

    (@truthmerchant)


    In my selections I have in the “views” list:

    Title — link to post
    Featured Image — thumbnail

    In my Controls list:

    Number — 3
    Post Type — post, not affected
    Meta — “featured”, “1”, NUMERIC, =, -Relation-

    In the database there are 8 featured posts. But no posts are presented.

    There is also the problem of making easy work with my created “post-rating” in the post meta table. Is there any documentation on how to do this?

    http://wordpress.org/plugins/easy/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author 2046

    (@o-o)

    hey

    I would like to help, let see..

    Post type has to be set something like “post” that is corrent, most likely.
    In the meta section.. the meta means, that it looks for a posts with the meta values.. for that case you have to have a custom meta defined, in this case meta “featured” and the post has to set the meta value to 1. If that is the case then it should work.

    better explanation what the meta control does is here:
    http://2046.cz/easy/control#anchor-5

    you can also use the “debug” brick.. put it on the end of the control block and post here what it shows you on the frontend.. it will show you the query that is send to the WP query..

    Thread Starter TruthMerchant

    (@truthmerchant)

    I understand about the “meta” brick and how to use it and even how to “AND” it with another “meta” brick (I think). What I don’t understand is how to use the “meta_value” and “meta_value_num fields in the “Order” brick to order posts according to a “Ratings” meta key and value I have created.

    I am guessing that I am supposed to precede the “Order” brick in which “meta_value” or “meta_value_num” are specified (I know not which) with a “Meta” brick identifying my “Ratings” key value pair and in that “Meta” brick, state an “AND” condition to attach the ensuing “Order” brick. Preceding this pair of bricks is the “Meta” test for “featured” with the AND specified in that brick compleres the chain. That is how my peanut brain has assessed this situation.

    The real question is how to use the “Order” brick to sort on a particular meta value.

    Be advised that while I am attempting to do this I have a lot of other stuff cluttering up the water.

    One thing that seems to be happening is that the “shadow box” for the drag and drop destination becomes very far removed from the pointer. Before I realized that was the case I concluded that the plug-in was just flat broke. It isn’t. It does work. But I am I understanding how the “Order” brick is to be connected to a particular “Meta” key?

    Plugin Author 2046

    (@o-o)

    hmm
    you can’t sort the post by meta value by the actual bricks in Easy..(the “meta_value” and “meta_value_num” are present, but you are right they are useless as they are in Easy right now)
    What you can do is what you know already.. get a posts with meta of some value, but you cannot sort it by that…
    In WP there are basically two ways how to work with meta and sort them out.
    The way which is implemented now is the “older” not that powerful version..
    The better way is bit tricky.. to implement. It is not impossible though.. but I’m afraid I do not have a time to rewrite the Easy at this moment ;( sorry for that.

    I know there is a small 🙂 problem with the drag&drop placement.. When I did it better at that time, it did not work in all browsers so I decided not to be perfectionist at this point…

    I’m sorry for not having a solution for you now.
    I’ll write it to my todos and will do it when I have bit of spare time.

    Thread Starter TruthMerchant

    (@truthmerchant)

    I appreciate your indulgence and your willingness to take further improvements under advisement. I will consider this topic closed and will open a new topic should I find some “slick” way to do what I need to do with the easy plug-in. What is already there is really very good 🙂 Thank you.

    So sorting by meta does not work, damn 🙁

    Plugin Author 2046

    (@o-o)

    Download Version 0.9.5.3
    the “Order” Control brick has new input filed for the “meta_key” name

    cheers

    nice, one more thing…
    in wp codex it says that orderby can have multiple parameters, but the plugin only allows 1 entry of order 🙁

    Plugin Author 2046

    (@o-o)

    hello

    check this out
    http://2046.cz/easy/control#anchor-12
    (note that there is no input field visible yet, as it is new feature and I did not updated the documentation )

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Very confused about meta’ is closed to new replies.