Jump to content

Search the Community

Showing results for tags 'wordpress wp'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 1 result

  1. Hi, this is my first post here and I'm also new to php, as you are about to see. I have a WordPress Themed web site: www.markcafiero.com I don't like the slider on the home page so I installed a new slider plugin which gives me the following instructions: How To Use: * From the theme html use: <?php putRevSlider( "alias" ) ?> example: <?php putRevSlider("TestSlider") ?> For show only on homepage use: <?php putRevSlider("TestSlider","homepage") ?> For show on certain pages use: <?php putRevSlider("TestSlider","2,10") ?> * From the widgets panel drag the "Revolution Slider" widget to the desired sidebar * From the post editor insert the shortcode from the sliders table So yes, I want to install on my home page, replacing the other. I found index.php I assume that's the home page. The following is the index.php code. If you can tell me what to replace with the above php code, I'll award you the job. Index.php: <?php /** * The main template file. * * @package WordPress */ session_start(); if(isset($_SESSION['pp_homepage_slideshow_style'])) { $pp_homepage_slideshow_style = $_SESSION['pp_homepage_slideshow_style']; } else { $pp_homepage_slideshow_style = get_option('pp_homepage_slideshow_style'); } if(empty($pp_homepage_slideshow_style)) { $pp_homepage_slideshow_style = 'flow'; } if($pp_homepage_slideshow_style == 'youtube_video') { $_GET['mode'] = 'f'; } get_header(); $pp_homepage_slideshow_cat = get_option('pp_homepage_slideshow_cat'); $homepage_items = -1; $args = array( 'post_type' => 'attachment', 'numberposts' => $homepage_items, 'post_status' => null, 'post_parent' => $pp_homepage_slideshow_cat, 'order' => 'ASC', 'orderby' => 'menu_order', ); $all_photo_arr = get_posts( $args ); include (TEMPLATEPATH . "/templates/template-slider-".$pp_homepage_slideshow_style.".php"); if($pp_homepage_slideshow_style != 'fullscreen') { get_footer(); } ?>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.