Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   PHP (https://www.askmehelpdesk.com/forumdisplay.php?f=454)
-   -   Rewrite 7 line syntax for WordPress template (https://www.askmehelpdesk.com/showthread.php?t=500754)

  • Aug 22, 2010, 05:03 PM
    whatsthebigidea
    Rewrite 7 line syntax for WordPress template
    I'm trying to embed a WordPress plug-in shortcut function within another:

    Code:

    <img src="<?php
    $url = '<?php if(function_exists('get_custom_field_data')) {
            get_custom_field_data('web', true);
    } ?>';
    $width = 300;
    echo bm_mshot ($url, $width);
    ?>" />

    Any direction is appreciate.
    Thanks
  • Jan 10, 2011, 12:39 PM
    yesbeckjs
    Are you able to nest the <?php tags like that? I have not used Wordpress but in standard php, that will fail.

  • All times are GMT -7. The time now is 02:05 AM.