StudioPress Community Forums

StudioPress Community Forums (http://www.studiopress.com/support/index.php)
-   General Discussion (http://www.studiopress.com/support/forumdisplay.php?f=7)
-   -   Wordpress Shortcodes Not Working (http://www.studiopress.com/support/showthread.php?t=109681)

OwensGuides 07-10-2012 03:35 PM

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

SoZo 07-10-2012 03:42 PM

The tags are

HTML Code:

<!--more-->
and
HTML Code:

<!--nextpage-->

OwensGuides 07-21-2012 05:28 PM

Quote:

Originally Posted by SoZo (Post 553463)
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?

SoZo 07-21-2012 05:34 PM

Yes, that is HTML

OwensGuides 11-07-2012 06:40 PM

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

OwensGuides 11-07-2012 06:57 PM

Quote:

Originally Posted by SoZo (Post 559664)
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

SoZo 11-07-2012 07:21 PM

What shortcode are you trying to add to the page?

OwensGuides 11-07-2012 07:24 PM

Quote:

Originally Posted by SoZo (Post 618106)
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.

SoZo 11-07-2012 07:40 PM

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.

OwensGuides 11-07-2012 07:49 PM

Quote:

Originally Posted by SoZo (Post 618118)
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

OwensGuides 11-07-2012 07:58 PM

Quote:

Originally Posted by SoZo (Post 618118)
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

SoZo 11-07-2012 07:58 PM

You're welcome :):


All times are GMT -5. The time now is 01:29 AM.

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