Mashup to call up by tag name?

Home Forums MapPress Support Mashup to call up by tag name?

Tagged: ,

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #10360
    Marcin416
    Participant

      I have a post type called project and to these posts I have associated tags. What is the shortcode script to have mashup call up a tag?

      #10363
      Chris
      Keymaster

        Hi, please see the documentation for some examples, or let me know if that doesn’t help:

        http://mappresspro.com/mappress-documentation

         

        #10364
        Marcin416
        Participant

          I did. I’m lost on the whole thing, I’ve spent out on this. Right now my script is.

          [mashup width="100%" show="query" show_query="post_type=project"]

          My project posts have several different project tags, how do I make the make recall the project post type and within it a specific tag?

          #10366
          Chris
          Keymaster

            Hi,

            The syntax can be tricky.  It comes from the WordPress query_posts() function.  The WordPress codex has some more examples at that link.

            I think for what you want to do, assuming the tag you want is ‘mytag’ you would write:

            [mashup width="100%" show="query" show_query="post_type=project&tag=mytag"]
            #10367
            Marcin416
            Participant

              I’ve tried many using http://codex.wordpress.org/Class_Reference/WP_Query#Parameters and http://mappresspro.com/mappress-documentation

              Such as those below.

              [mashup width="100%" show="query" show_query="post_type=project&tag_id=22"]

              [mashup width="100%" show="query" show_query="post_type=project&tag=cedar-shakes-and-shingles"]

              So far only the basic post type recall works.

              [mashup width="100%" show="query" show_query="post_type=project"]

               

              If anyone has experienced this and arrived at a solution please let me know. I’m quite new to this and WordPress.

               

               

              #10368
              Chris
              Keymaster

                That’s strange, is your custom post type actually using tags, or is it using categoriess or a custom taxonomy?

                If you’d like send a login using the contact form and I’ll take a look for you (please tell me which post to check for the mashup).

                #10370
                Marcin416
                Participant

                  Chris,

                  Thanks for the immediate response and  resolving my issues!

                Viewing 7 posts - 1 through 7 (of 7 total)
                • You must be logged in to reply to this topic.