Results 1 to 2 of 2

Thread: How to Display ID of Store in Template (PHP)

  1. #1
    Thread Starter
    Rookie allenlarson's Avatar
    Join Date
    Jul 2011
    Location
    United States
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Red face How to Display ID of Store in Template (PHP)

    This is a bit of a theme modification, but hopefully one of the mods can answer quickly or anyone with PHP experience

    Look at the number 47 in the code below. The rest of my code is working for me (displaying the content of a meta field from Advanced Custom Fields plugin on my store page), but I need to dynamically change that number 47 to whatever the current store page is.

    Code:
    <?php
    $cat_id = 47;
    $value = get_field('extended_store_descriptions', 'stores_' . $cat_id );
    echo $value;
    
    ?>
    Thanks so much!

  2. #2
    dimitris's Avatar
    Join Date
    Oct 2011
    Location
    Earth
    Posts
    20,618
    Thanks
    222
    Thanked 1,873 Times in 1,770 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Add unique text box for providing display ads unique for each store pages
    By couponminister in forum Report Clipper Bugs
    Replies: 1
    Last Post: September 27th, 2012, 10:56 AM
  2. how to edit store template
    By matthias in forum Report Clipper Bugs
    Replies: 1
    Last Post: September 19th, 2012, 04:22 PM
  3. display store name
    By couponspicy in forum Clipper General Discussion
    Replies: 5
    Last Post: May 20th, 2012, 10:07 PM
  4. Template turns white even after deleting and reactiving the theme template
    By postgrabber in forum ClassiPress General Discussion
    Replies: 6
    Last Post: August 28th, 2011, 09:20 AM