Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Center area post/pages (http://forum.bytesforall.com/forumdisplay.php?f=32)
-   -   About More Tag (http://forum.bytesforall.com/showthread.php?t=18527)

gamix07 Oct 1, 2012 04:05 AM

About More Tag
 
Hi guyz! I created one page specially for One Tag Articles. I want to use the global Atahualpa "Read More tag", in my each articles. For now, to set the $more tag from code, i got this:

HTML Code:

global $more;    // Declare global $more (before the loop).
$more = 0;      // Set (inside the loop) to display content above the more tag.
the_content('<div style="vertical-align:text-top;font-size:11px;">>> Mehr...</div>');

But i want set the "more tag" from Atahualpa Options.

Thanks for help!
(I got Atahualpa 3.7.7)

juggledad Oct 1, 2012 05:29 AM

did you look at the theme options?

gamix07 Oct 1, 2012 06:01 AM

Yes... but i don't find nothing. I go to Atahualpa Options and in the '"Read More" tag' menu or 'Configure EXCERPTS' and don't find any code or support for that. I only want to work that when I put <!--more--> in posts, on my New Page, the ">>> Mehr..." text want to be set from Atahualpa, not from that coding.

The testing website: http://test1.photofolio.info/ (first page got that code, not the settings for atahualpa)

juggledad Oct 1, 2012 06:04 AM

Have you tried putting in your text there?
You don't need to edit the theme code

gamix07 Oct 1, 2012 06:09 AM

Yes but doesn't works. My edited page content looks like that:
HTML Code:

<?php
$args = array( 'tag' =>
portfolio );
$lastposts = get_posts( $args );
foreach($lastposts as $post) : setup_postdata($post); ?>

<h99><a href="<?php the_permalink(); ?>">
<?php the_title(); ?>
</a></h99><br/><br/>
<?php
global $more;    // Declare global $more (before the loop).
$more = 0;      // Set (inside the loop) to display content above the more tag.
the_content('<div style="vertical-align:text-top;font-size:11px;">>> Mehr...</div>');
?>
<br/>
<br/>
</div>
<?php endforeach; ?>


juggledad Oct 1, 2012 06:28 AM

are you talking about the content of a page or have you created a page.pgp? and if so why?

gamix07 Oct 1, 2012 06:34 AM

I created a page.php to show all the posts with 'portfolio' tag. In this page I want to use the the "More Text" from Atahualpa Settings. Can I?

juggledad Oct 1, 2012 06:44 AM

you can use '$bfa_ata['more_tag'])' but make sure to have a 'global $bfa_ata;' near the top of your code.

BTW I beleive you page.php will now be used for all pages per wordpress's hierarchy of templates.


All times are GMT -6. The time now is 01:13 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.