• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Featured Widget Amplified help

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Featured Widget Amplified help

This topic is: not resolved

Tagged: featured widget amplified, genesis, plugin, widget

  • This topic has 37 replies, 2 voices, and was last updated 10 years, 3 months ago by nickthegeek.
Viewing 20 posts - 1 through 20 (of 38 total)
1 2 →
  • Author
    Posts
  • November 20, 2012 at 3:31 pm #945
    Jeffrey
    Member

    Is there a way to put "Leave a comment" and "read more" in the same section of the widget. The default "read more" area is in the post title section and the default "comments" location is the post meta. Is there a way to merge them -- or maybe to call the "read more" link to the post meta section?

    Thanks so much!

    November 20, 2012 at 8:16 pm #1024
    nickthegeek
    Member

    Jeff, There really isn't a simple way to do that. The issue is that the read more is part of the content output, so you would need to make your own custom content and a custom short code to output the more link in the post meta section.

    November 20, 2012 at 8:21 pm #1030
    Jeffrey
    Member

    Thanks for the reply Nick.

    Well, is there an easier way to display the "comments" link in the content section with the "read more", instead of the aforementioned vice versa?

    November 21, 2012 at 8:46 am #1112
    nickthegeek
    Member

    Not really, both require replacing the plugin content output with your own custom output.

    November 21, 2012 at 3:40 pm #1188
    Jeffrey
    Member

    gotcha nick. is there anyway you could help me with that custom output? is it a big ordeal?

    November 23, 2012 at 10:38 am #1373
    nickthegeek
    Member

    Jeffery,

    I don't have the code for that written up.

    November 26, 2012 at 5:57 pm #1781
    Jeffrey
    Member

    Nick, thanks for getting back to me over the holiday weekend. Is that easy code to write up? If not, do you know of a widget or plugin that already has this built in (though i need to maintain the post offset functionality).

    November 26, 2012 at 8:06 pm #1798
    nickthegeek
    Member

    Jeffery,

    It isn't super hard, it can be done via the hooks system built into the plugin. I'm not aware of one that does this already.

    November 26, 2012 at 9:21 pm #1808
    Jeffrey
    Member

    Do you have any help on how to use the hooks system to accomplish this?

    Thanks a ton for your help Nick! If I can pull this off the site will be done! Yay!

     

    November 28, 2012 at 4:05 pm #2144
    Jeffrey
    Member

    Any word Nick?

    November 28, 2012 at 4:25 pm #2148
    nickthegeek
    Member

    I do not have any detailed tutorial. The information on hooks in my Genesis Explained series will apply here as well.

    http://designsbynickthegeek.com/tag/genesis-explained

    November 28, 2012 at 7:34 pm #2196
    Jeffrey
    Member

    I'm really trying hard to wrap this up. Just don't have much experience writing in short codes or hooks. Would something like this work - http://www.billerickson.net/code/add-read-more-to-display-posts-shortcode/ ? If so, can you post any modifications you see that I would need to make to that coded to be able to use a [read_more] short code in the widget post meta section?

    November 28, 2012 at 7:56 pm #2198
    Jeffrey
    Member

    I tried this code in functions.php but I'm getting a parse error. Any ideas?

    function read_more() {
    if (have_posts()) :
    while (have_posts()) : the_post();
    $return_string = '<a href='.get_permalink($post->ID).'>'.get_the_title().'</a>';
    endwhile;
    endif;
    return $return_string;
    }

    function register_shortcodes() {
    add_shortcode( 'read-more', 'read_more_function');
    }

    November 29, 2012 at 9:31 pm #2454
    nickthegeek
    Member

    I see directional quotes, I don't know if that is formatting from the forum or the coded you added.


    function read_more() {
    global $post;
    $return_string = 'ID).'">'.get_the_title().'';
    return $return_string;
    }
    add_shortcode( 'read-more', 'read_more_function');

    November 30, 2012 at 4:32 pm #2662
    Jeffrey
    Member

    copied ur code exactly and pasted it like this Nick:

    /** Add read more shortcode */
    function read_more() {
    global $post;
    $return_string = 'ID).'">'.get_the_title().'';
    return $return_string;
    }
    add_shortcode( 'read-more', 'read_more_function');

    I get the following error:

    Parse error: syntax error, unexpected '=' in /home/content/J/S/D/JSDavis82/html/wood/wp-content/themes/magazine/functions.php on line 97

    November 30, 2012 at 4:38 pm #2667
    Jeffrey
    Member

    shit, the forum is effing with the code i'm posting, but the top code quote in that last one was the exact code you posted, so disregard the way it is converting the characters.

    November 30, 2012 at 6:55 pm #2699
    nickthegeek
    Member

    I don't see a problem with that code, it could be the way it was added to the functions.php file.

    December 3, 2012 at 4:33 pm #3151
    Jeffrey
    Member

    thanks for replying Nick, sorry for my delay. how could it be a problem with how it's added to functions.php? how should it be added?

    December 3, 2012 at 6:11 pm #3165
    nickthegeek
    Member

    Generally at the very end so it isn't interfering with any other code.

    December 3, 2012 at 7:59 pm #3177
    Jeffrey
    Member

    thanks nick. Just tried putting it at the bottom and got this error:

    Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in /home/content/J/S/D/JSDavis82/html/wood/wp-content/themes/magazine/functions.php on line 144

  • Author
    Posts
Viewing 20 posts - 1 through 20 (of 38 total)
1 2 →
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble