Forum Replies Created
-
AuthorPosts
-
Still trying to fix this nick. Do you (or anyone else) have any input?
Any thoughts on this nick?
Nevermind, got it figured out.
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.
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?
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.
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?
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>-
This reply was modified 5 months, 2 weeks ago by
Jeffrey.
-
This reply was modified 5 months, 2 weeks ago by
Jeffrey.
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
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
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.
Just tried that, but to no avail.
so frustrating. any other advice? thanks so much for your help!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 144anyone? i really need some help on this.
-
This reply was modified 5 months, 2 weeks ago by
-
AuthorPosts