• 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

Jeffrey

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
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 20 posts - 1 through 20 (of 34 total)
1 2 →
  • Author
    Posts
  • December 19, 2012 at 5:01 pm in reply to: Featured Widget Amplified help #6276
    Jeffrey
    Member

    Still trying to fix this nick. Do you (or anyone else) have any input?

    December 8, 2012 at 2:57 pm in reply to: Featured Widget Amplified help #3881
    Jeffrey
    Member

    Any thoughts on this nick?

    December 6, 2012 at 4:10 am in reply to: Genesis Featured Widget Amplified horizontal layout? #3553
    Jeffrey
    Member

    Nevermind, got it figured out.

    December 6, 2012 at 4:09 am in reply to: Featured Widget Amplified help #3552
    Jeffrey
    Member

    FYI, i'm putting the shortcodes in the post meta field of the widget like this: [post_comments] [read-more] (but i've also tried [read more] and [read_more]. None work.

    December 5, 2012 at 7:02 pm in reply to: Featured Widget Amplified help #3500
    Jeffrey
    Member

    I notice the shortcodes you use in the widget configuration are formatted like this: [short_code]. I believe my short code is written to be like this [short code]. Does that make a difference?

    December 5, 2012 at 3:13 pm in reply to: Featured Widget Amplified help #3478
    Jeffrey
    Member

    Here's my full functions.php code. The shortcode section is at the very bottom - http://pastie.org/5485701. Nick, thanks SO much for your continued help.

    December 4, 2012 at 5:40 pm in reply to: Featured Widget Amplified help #3358
    Jeffrey
    Member

    Ok, got the shortcode working only to, wait for it, not have the shortcode generate a "read more" link when I use it in the post meta section of the widget. Any ideas or help Nick -- or anyone else?

     

    December 4, 2012 at 5:05 pm in reply to: Featured Widget Amplified help #3355
    Jeffrey
    Member

    god i can't get this forum to paste the code right. how do u do that? *edit: Nevermind, figured it out and edited the above post with proper code formatting.

    December 4, 2012 at 5:04 pm in reply to: Featured Widget Amplified help #3354
    Jeffrey
    Member

    removing that where the code reads as follows results in the exact same error message (same line and referencing the = sign):

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

    December 4, 2012 at 4:33 pm in reply to: Featured Widget Amplified help #3350
    Jeffrey
    Member

    Oooo, right you are Nick, apologies. here's is the pastie of the full functions.php file. The error is on line 146, citing an "unexpected '='". Thanks for your help! http://pastie.org/5481130

    December 4, 2012 at 10:22 am in reply to: Featured Widget Amplified help #3268
    Jeffrey
    Member

    do you need the code from the entire functions.php file so you can see the line in reference, or just a section? if the latter, here's the pastie. http://pastie.org/5479516

    December 3, 2012 at 8:13 pm in reply to: Featured Widget Amplified help #3182
    Jeffrey
    Member

    BTW, got the exact same error after moving that code after re-typing. I even just tried to retype it in TextEdit and then copy and paste into functions.php, but didn't work.

    December 3, 2012 at 8:08 pm in reply to: Featured Widget Amplified help #3180
    Jeffrey
    Member

    Just tried that, but to no avail. 🙁 so frustrating. any other advice? thanks so much for your help!

    December 3, 2012 at 7:59 pm in reply to: Featured Widget Amplified help #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

    December 3, 2012 at 4:39 pm in reply to: sidebar widget background help #3155
    Jeffrey
    Member

    anyone? i really need some help on this.

    December 3, 2012 at 4:33 pm in reply to: Featured Widget Amplified help #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?

    November 30, 2012 at 4:38 pm in reply to: Featured Widget Amplified help #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 4:32 pm in reply to: Featured Widget Amplified help #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 28, 2012 at 7:56 pm in reply to: Featured Widget Amplified help #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 28, 2012 at 7:34 pm in reply to: Featured Widget Amplified help #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?

  • Author
    Posts
Viewing 20 posts - 1 through 20 (of 34 total)
1 2 →

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