Activity Stream
48,167 MEMBERS
6929 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 7 of 7
  1.     
    #1
    Banned
    Website's:
    Ifyoureseeingthisinsteadofrealbiothenyourenotyetreadytoknow.com

    Thumbs up Genesis Framework - WP help.

    Hey, I'm struck here.

    My function.php

    <?php
    // Start the engine
    require_once(TEMPLATEPATH.'/lib/init.php');

    // Want to remove actions? Do it here!
    add_action('get_header', 'remove_breadcrumbs');
    function remove_breadcrumbs() {
    if(is_front_page())
    remove_action('genesis_before_loop', 'genesis_do_breadcrumbs');
    }


    // Add new image sizes
    genesis_add_image_size('sidebar-alt', 125, 125, TRUE);
    add_filter( 'excerpt_more', 'child_read_more_link' );
    add_filter( 'get_the_content_more_link', 'child_read_more_link' );
    add_filter( 'the_content_more_link', 'child_read_more_link' );
    function child_read_more_link() {
    return '<a class="more-link" href="' . get_permalink() . '" rel="nofollow"> Download Now </a>';}

    ?>

    But I want to add Download "post title".

    I tried <?php the_content("...continue reading the story
    called " . get_the_title('', '', false)); ?>

    but didn't work.. I also tried few more edit, everything gave me error.

    So, I was wondering, can you guys help me out?

    Thank you.


    PS: style.css

    /* Customization for Read More Link... */
    .more-link {
    background: #CCCCCC;
    float: right;
    font-size: 11px;
    font-weight: bold;
    margin: 15px 0 15px 0px;
    padding: 2px 7px 2px 7px;
    text-decoration: none;
    text-transform: none;
    }
    BattleDuty Reviewed by BattleDuty on . Genesis Framework - WP help. Hey, I'm struck here. My function.php But I want to add Download "post title". I tried <?php the_content("...continue reading the story Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Too busy :|
    Website's:
    L337Fx.com BeastieBay.net
    PHP Code: 
    <?php the_content("Download "get_the_title($ID); ?>
    Try that and see

    EDIT:

    Or maybe replace the last line with this (make a backup first):

    PHP Code: 
    return '<a class="more-link" href="' get_permalink() . '" rel="nofollow">Download Now '.get_the_title .' </a>';} 

  4.     
    #3
    Banned
    Website's:
    Ifyoureseeingthisinsteadofrealbiothenyourenotyetreadytoknow.com
    Didn't work It's showing like


  5.     
    #4
    Banned
    <?php the_content("Download ",get_the_title($ID); ?>

    comma was missing?

  6.     
    #5
    Banned
    Website's:
    Ifyoureseeingthisinsteadofrealbiothenyourenotyetreadytoknow.com
    ^^add where?

    // Add new image sizes
    genesis_add_image_size('sidebar-alt', 125, 125, TRUE);
    add_filter( 'excerpt_more', 'child_read_more_link' );
    add_filter( 'get_the_content_more_link', 'child_read_more_link' );
    add_filter( 'the_content_more_link', 'child_read_more_link' );
    function child_read_more_link() {
    return '<a class="more-link" href="' . get_permalink() . '" rel="nofollow"> Download Now </a>';}
    <?php the_content("Download ",get_the_title($ID); ?>

    ?>
    This gives error.

  7.     
    #6
    Too busy :|
    Website's:
    L337Fx.com BeastieBay.net
    oops, yea sorry. Add the comma lol

  8.     
    #7
    Banned
    Website's:
    Ifyoureseeingthisinsteadofrealbiothenyourenotyetreadytoknow.com
    Parse error: syntax error, unexpected '<' in /home/xxxx/public_html/xxxxxx/wp-content/themes/xxxxxx/functions.php on line 20

    <?php
    // Start the engine
    require_once(TEMPLATEPATH.'/lib/init.php');

    // Want to remove actions? Do it here!
    add_action('get_header', 'remove_breadcrumbs');
    function remove_breadcrumbs() {
    if(is_front_page())
    remove_action('genesis_before_loop', 'genesis_do_breadcrumbs');
    }


    // Add new image sizes
    genesis_add_image_size('sidebar-alt', 125, 125, TRUE);
    add_filter( 'excerpt_more', 'child_read_more_link' );
    add_filter( 'get_the_content_more_link', 'child_read_more_link' );
    add_filter( 'the_content_more_link', 'child_read_more_link' );
    function child_read_more_link() {
    return '<a class="more-link" href="' . get_permalink() . '" rel="nofollow"> Download Now </a>';}
    <?php the_content("Download ",get_the_title($ID); ?>?>

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. RAD Framework
    By SplitIce in forum Web Development Area
    Replies: 40
    Last Post: 5th Oct 2012, 05:29 PM
  2. Thesis or Genesis?
    By EsotorisK in forum Polling Plaza
    Replies: 10
    Last Post: 22nd Apr 2012, 11:02 PM
  3. [WTB] Windows / ASP / Framework 4
    By Nizax in forum Hosting Discussion
    Replies: 1
    Last Post: 17th Aug 2010, 06:57 PM
  4. Run .net framework app without it
    By pankaj in forum Web Development Area
    Replies: 12
    Last Post: 11th Jul 2010, 12:27 PM
  5. Drupal Best php Framework
    By shakiljavid in forum Tutorials and Guides
    Replies: 7
    Last Post: 17th Jun 2009, 02:15 PM

Tags for this Thread

BE SOCIAL