• redacteur123

    (@redacteur123)


    So I’m trying to get a list of pages with a certain tag and additionally all posts , in the same list ordered chronologically.

    [loop type=post,page] obviously gets me all posts and pages. [loop type=post,page tag=thetag] gets me only the pages with the tag but not the posts. Now to filter the pages I’m a little lost.

    Is it possible with CCS to make a query like that? Or should I do the ranking afterwards with javascript?

    Thanks for the help

Viewing 2 replies - 1 through 2 (of 2 total)
  • supremebeing

    (@supremebeing)

    Have you gone to the special page under Dashboard >> Content, where the title says Content Overview which list out the entire info of all db you can retrieve.

    Everyone’s wp is setup differently so it’s a bit hard to take my setup as a reference for your question.

    If your post isn’t showing, then you may check in the overview page if your post post-type has include the relationship with the tag you entered in the shortcode. This happened to me when I started out using this plugin, when things didn’t work out as I wanted to, I thought this plugin was broken; but after spending a long time checking my codes, only to realize everything was my silly mistakes, either relationship not link or typo.

    ** Also remember to check the logic how you lay it out. I treat this plugin as a shortener for coding, but its basic layout still follows the actual codings.

    try
    compare=and
    though it’s used for categories and tags, may be will work for post types too

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Looping through posts and pages (which have a tag)’ is closed to new replies.