Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages »

About More Tag


  #1  
Old Oct 1, 2012, 05:05 AM
gamix07
 
28 posts · Mar 2012
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)

Last edited by gamix07; Oct 1, 2012 at 05:15 AM.
  #2  
Old Oct 1, 2012, 06:29 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
did you look at the theme options?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Oct 1, 2012, 07:01 AM
gamix07
 
28 posts · Mar 2012
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)
  #4  
Old Oct 1, 2012, 07:04 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Have you tried putting in your text there?
You don't need to edit the theme code
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Oct 1, 2012, 07:09 AM
gamix07
 
28 posts · Mar 2012
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; ?>
  #6  
Old Oct 1, 2012, 07:28 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
are you talking about the content of a page or have you created a page.pgp? and if so why?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #7  
Old Oct 1, 2012, 07:34 AM
gamix07
 
28 posts · Mar 2012
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?
  #8  
Old Oct 1, 2012, 07:44 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Oct 1, 2012 at 08:26 AM.

Bookmarks

Tags
different page, more tag




All times are GMT -6. The time now is 01:15 AM.


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