Community Forums › Forums › General Discussion › Featured Widget Amplified help
Tagged: featured widget amplified, genesis, plugin, widget
This topic contains 37 replies, has 2 voices, and was last updated by nickthegeek 5 months ago.
-
AuthorPosts
-
November 30, 2012 at 4:38 pm #2667
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 #2699I 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 #3151thanks 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 #3165Generally at the very end so it isn’t interfering with any other code.
December 3, 2012 at 7:59 pm #3177thanks 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 144December 3, 2012 at 8:03 pm #3178It is possible that you have some character entities. They may look like spaces or tabs to you but they don’t to PHP. Delete anything that looks like a space or a tab then manually type it back in.
December 3, 2012 at 8:08 pm #3180Just tried that, but to no avail.
so frustrating. any other advice? thanks so much for your help!December 3, 2012 at 8:13 pm #3182BTW, 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:37 pm #3186Jeffrey,
It would help if you could get the code to post. Try putting it in a pastie and posting a link to that
December 4, 2012 at 10:22 am #3268do 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 4, 2012 at 4:08 pm #3342That isn’t the code that you referenced earlier. Which line in that is throwing the error?
December 4, 2012 at 4:33 pm #3350Oooo, 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 4:37 pm #3351for some reason you have this code in-between $post->ID
rel="nofollow"December 4, 2012 at 5:04 pm #3354removing 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>-
This reply was modified 5 months, 3 weeks ago by
Jeffrey.
-
This reply was modified 5 months, 3 weeks ago by
Jeffrey.
December 4, 2012 at 5:05 pm #3355 -
This reply was modified 5 months, 3 weeks ago by
-
AuthorPosts
You must be logged in to reply to this topic.