Results 1 to 2 of 2

Thread: Problem with Dynamic Content Gallery

  1. #1

    Problem with Dynamic Content Gallery

    May I ask if where exactly can i place the code <?php dynamic_content_gallery(); ?> that will allow me to show the gallery in my homepage?

    I would like to have something like the demo in Dynamic Content Gallery WordPress plugin — studiograsshopper in my site:


    In addition: I am using thesis theme.
    Last edited by djam; 28 January, 2011 at 08:42 AM. Reason: additional detail

  2. #2
    To only display this on the home page you need some extra PHP code as follows:

    PHP Code:
    <?php if ( is_home() ) dynamic_content_gallery(); ?>
    I'm not sure about the Thesis theme but in many cases you would insert the code into index.php

    However, if you post the code in "the loop" it may be displayed several times. Then you need a counter as follows to restrict it to the first post:

    PHP Code:
    <?php if ( is_home() && $count++ < dynamic_content_gallery(); ?>
    You can edit the template files from within the WP control panel in the Theme settings. Just cut and paste the code to test, and if it doesn't work, delete the code you pasted from the template file.

    Note that <?php ?> is used to enclose sections of PHP into HTML but not needed if you are pasting the code inside some existing PHP section of code.

    Hopefully this helps

Similar Threads

  1. Replies: 8
    Last Post: 10 September, 2009, 04:04 AM
  2. Dynamic website and SEO
    By imported_whitey99 in forum Promoting
    Replies: 1
    Last Post: 14 August, 2009, 13:29 PM
  3. Dynamic website and SEO
    By imported_nikon in forum Promoting
    Replies: 1
    Last Post: 31 May, 2009, 12:04 PM
  4. Large pages content problem
    By almannai in forum Translation Script Support
    Replies: 1
    Last Post: 9 May, 2009, 02:25 AM
  5. PHP&SQL. dynamic meta content.
    By epidemic in forum Programming
    Replies: 0
    Last Post: 11 January, 2009, 15:17 PM

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts