StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
  #1  
Old 07-10-2012, 03:35 PM
OwensGuides OwensGuides is offline
Registered User
Genesis Member
 
Join Date: Jul 2012
Posts: 13
Exclamation Wordpress Shortcodes Not Working

Hi,

As you can tell I am using the Eleven40 StudioPress child theme. I have tried using some Wordpress shortcodes in my posts such as <!nextpage> and <!readmore>, but not luck.
(If I entered the wrong shortcodes I just forgot exactly what they are, but I tried the right way.

Can anyone tell me what I am doing wrong or if I have to add some code?

Thanks,

Owen

P.S. If this helps, my website is www.owensguides.com
  #2  
Old 07-10-2012, 03:42 PM
SoZo's Avatar
SoZo SoZo is offline
Community Moderator
 
Join Date: Oct 2008
Location: Minneapolis, Minnesota
Posts: 47,500
Default

The tags are

HTML Code:
<!--more-->
and
HTML Code:
<!--nextpage-->
__________________
John "Nicolas Flamel" Wright | SoZo's design | John Wright Photography

New to Genesis? Check out Genesis Explained.
"We are the music makers, and we are the dreamers of dreams..." - Arthur O'Shaughnessy

"Some days even my lucky rocket ship underpants don't help" - Calvin
StudioPress on Facebook
  #3  
Old 07-21-2012, 05:28 PM
OwensGuides OwensGuides is offline
Registered User
Genesis Member
 
Join Date: Jul 2012
Posts: 13
Default

Quote:
Originally Posted by SoZo View Post
The tags are

HTML Code:
<!--more-->
and
HTML Code:
<!--nextpage-->
Hi, thanks for replying. I tried inserting the <!--more--> code into my post but no luck, it still just displays that as text. Should I insert it in the HTML section?
  #4  
Old 07-21-2012, 05:34 PM
SoZo's Avatar
SoZo SoZo is offline
Community Moderator
 
Join Date: Oct 2008
Location: Minneapolis, Minnesota
Posts: 47,500
Default

Yes, that is HTML
__________________
John "Nicolas Flamel" Wright | SoZo's design | John Wright Photography

New to Genesis? Check out Genesis Explained.
"We are the music makers, and we are the dreamers of dreams..." - Arthur O'Shaughnessy

"Some days even my lucky rocket ship underpants don't help" - Calvin
StudioPress on Facebook
  #5  
Old 11-07-2012, 06:57 PM
OwensGuides OwensGuides is offline
Registered User
Genesis Member
 
Join Date: Jul 2012
Posts: 13
Default

Quote:
Originally Posted by SoZo View Post
Yes, that is HTML
I started a new thread but maybe you can help me faster. How can I get the shortcode to work on static pages? As i mentioned on the thread a website told me to add a line of code just above the php content function, but I cant find that function in my genesis theme
  #6  
Old 11-07-2012, 06:40 PM
OwensGuides OwensGuides is offline
Registered User
Genesis Member
 
Join Date: Jul 2012
Posts: 13
Exclamation How to Use Read More Shortcode on Pages

Hey everyone,

First of all, I know that the read more shortcode is by default only usable on the home page. however, I have seen two websites that offer the same code to let me use the shortcode on any static page or post, which is this:

<?php global $more; $more = FALSE; ?>

The sites say to add the code just above the [<?php the_content('Read more &rarr;'); ?>] function. I can't find this is anywhere in the editor. Whenever I even go into a Genesis file it says all over not to edit it, so how can I use this code?

If you want to look, the page I want to use this code on, but not limited to this page, is http://owensguides.com/studiopress (I am a studiopress partner and am setting up a advertising page). Can anyone please tell me how to use this code??
Edit/Delete Message
  #7  
Old 11-07-2012, 07:21 PM
SoZo's Avatar
SoZo SoZo is offline
Community Moderator
 
Join Date: Oct 2008
Location: Minneapolis, Minnesota
Posts: 47,500
Default

What shortcode are you trying to add to the page?
__________________
John "Nicolas Flamel" Wright | SoZo's design | John Wright Photography

New to Genesis? Check out Genesis Explained.
"We are the music makers, and we are the dreamers of dreams..." - Arthur O'Shaughnessy

"Some days even my lucky rocket ship underpants don't help" - Calvin
StudioPress on Facebook
  #8  
Old 11-07-2012, 07:24 PM
OwensGuides OwensGuides is offline
Registered User
Genesis Member
 
Join Date: Jul 2012
Posts: 13
Default

Quote:
Originally Posted by SoZo View Post
What shortcode are you trying to add to the page?
Im trying to add the read more / continue reading shortcode. Websites are saying to add the following code:

<?php global $more; $more = FALSE; ?>

just before the

<?php the_content('Read more &rarr;'); ?> code. I can't find where this is because all the Genesis files say do not edit or something like that.
  #9  
Old 11-07-2012, 07:40 PM
SoZo's Avatar
SoZo SoZo is offline
Community Moderator
 
Join Date: Oct 2008
Location: Minneapolis, Minnesota
Posts: 47,500
Default

What exactly are you trying to acheve.

There is no such thing as a readmore shortcode. There is the more tag: <!-- more --> which truncates post and page content when pulled elsewhere in the site. If you are trying to paginate a post or page then you use the <! -- nextpage --> tag.
__________________
John "Nicolas Flamel" Wright | SoZo's design | John Wright Photography

New to Genesis? Check out Genesis Explained.
"We are the music makers, and we are the dreamers of dreams..." - Arthur O'Shaughnessy

"Some days even my lucky rocket ship underpants don't help" - Calvin
StudioPress on Facebook
  #10  
Old 11-07-2012, 07:49 PM
OwensGuides OwensGuides is offline
Registered User
Genesis Member
 
Join Date: Jul 2012
Posts: 13
Default

Quote:
Originally Posted by SoZo View Post
What exactly are you trying to acheve.

There is no such thing as a readmore shortcode. There is the more tag: <!-- more --> which truncates post and page content when pulled elsewhere in the site. If you are trying to paginate a post or page then you use the <! -- nextpage --> tag.
I'm trying to do just that - I am using the <! -- nextpage --> tag, sorry for me saying the read more one. It's still not working - doesn't show up on the site at all but i can see it in the html editor.

The page I have it on is owensguides.com/studiopress basically ontop of each picture I have the tag
  #11  
Old 11-07-2012, 07:58 PM
OwensGuides OwensGuides is offline
Registered User
Genesis Member
 
Join Date: Jul 2012
Posts: 13
Default

Quote:
Originally Posted by SoZo View Post
What exactly are you trying to acheve.

There is no such thing as a readmore shortcode. There is the more tag: <!-- more --> which truncates post and page content when pulled elsewhere in the site. If you are trying to paginate a post or page then you use the <! -- nextpage --> tag.
Nevermind, I got it working :D thanks for your help
  #12  
Old 11-07-2012, 07:58 PM
SoZo's Avatar
SoZo SoZo is offline
Community Moderator
 
Join Date: Oct 2008
Location: Minneapolis, Minnesota
Posts: 47,500
Default

You're welcome
__________________
John "Nicolas Flamel" Wright | SoZo's design | John Wright Photography

New to Genesis? Check out Genesis Explained.
"We are the music makers, and we are the dreamers of dreams..." - Arthur O'Shaughnessy

"Some days even my lucky rocket ship underpants don't help" - Calvin
StudioPress on Facebook
 

Tags
code, shortcode, shortcodes

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Shortcodes not working chadhardy General Discussion 3 06-09-2011 05:04 AM


All times are GMT -5. The time now is 09:34 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.