PHP Wordpress Coding Question

Discussion in 'PHP' started by North Carolina SEO, Oct 10, 2007.

  1. #1
    Having trouble figuring cleanest option:

    In WordPress (ver. 2.x) I have installed the wp_admanager plugin. Coding for this in the template is:

     
    <?php wp_admanager('group_name'); ?>
    
    PHP:
    My desire is to replace the "group_name" with the current category as displayed by:
     
    <?php echo single_cat_title(); ?>
    
    PHP:
    What is the best means to replace 'group_name' with the current category of Wordpress?

    Thanks in advance! :)
     
    North Carolina SEO, Oct 10, 2007 IP
  2. theOtherOne

    theOtherOne Well-Known Member

    Messages:
    112
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    108
    #2
    Do you mean like this?
    
    <?php wp_admanager(single_cat_title()); ?>
    
    PHP:
    ...sorry if I misunderstood you ;)
     
    theOtherOne, Oct 10, 2007 IP
    North Carolina SEO likes this.
  3. North Carolina SEO

    North Carolina SEO Well-Known Member

    Messages:
    1,327
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    105
    #3
    That receives the following error:

    Dealers-Retailers is one of the groups preset in the database. When I execute the following, it works fine.

    <?php wp_admanager('Dealers-Retailers'); ?>
    PHP:
     
    North Carolina SEO, Oct 10, 2007 IP
  4. North Carolina SEO

    North Carolina SEO Well-Known Member

    Messages:
    1,327
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    105
    #4
    Does anyone else know how to replace the 'Dealers-Retailers' with the current category name within Wordpress? P-L-E-E-Z-E!!!
     
    North Carolina SEO, Oct 10, 2007 IP