We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18913
    • 654 Posts
    I’ve got a situation where I need to figure out the MODx-equivalent of a number of Wordpress template tags. I understand that there may be many that aren’t relevant. So before I jump headfirst into another rabbit hole, can anyone tell me if this kind of a mapping has already been done somewhere? Or, if anyone has partial mappings they’d be willing to share, that would help. I would be happy to post a cheatsheet for everyone when all is said and done.

    Thanks in advance,
    Matt
      • 17499 ☆ A M B ☆
      • 872 Posts
      I just googled "Wordpress template tag" to be sure about what you were talking about.

      There are informations available on the official doc, maybe it’s what come closer to what you’re seeking.
        • 18913
        • 654 Posts
        Hi,
        Thanks for the reply. That’s half the idea smiley Here’s an example that I should have provided. The header.php file in a WP theme that I happen to have installed has the following lines :
        	<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
        	<meta name="description" content="<?php bloginfo('description') ?>" />
        
        	<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/960gs/960.css" type="text/css" media="screen" />
        	<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />

        Now, I know it’s not *that* hard to go through and figure out what is really being referenced, at least in MODx terms and in this example.

        But Wordpress has a number of other template tags
        http://codex.wordpress.org/Template_Tags
        so I thought that it might be handy if there were a cheatsheet available that said something to the effect of

        <?php bloginfo('charset'); ?> is equal to [(modx_charset)]


        Certainly, some things won’t have a mapping. But for those that do it would just make understanding what’s going on a bit easier.
          • 17499 ☆ A M B ☆
          • 872 Posts
          I don’t think that it is a good approach of MODx.

          The tags a gave you are the one available, but many "template tags" are just managed with template variable in MODx. For Evo, It’s more modular and powerful than using the built in meta generator for example.

          You can maybe look at the content tags for each page.

          There is already a cheet sheat available too if that’s interest you.

            • 18913
            • 654 Posts
            I’ve solved the problem by figuring out how to get the Wordpress functions/code to be callable from MODx :
            http://modxcms.com/forums/index.php/topic,44791.msg265706/topicseen.html#msg265706

            Thanks for the feedback,
            Matt