jpajares
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Admin UI Customize] Hide Add post/page/custom-post-type buttonsOK, Thanks for the info gqevu6bsiz!
Forum: Plugins
In reply to: [WP Dashboard Notes] Suggested Feature+ 1 on this, so we can add notes to specific admin pages. There is other plugin that seems to provide this feature but has not been updated since 2 years:
https://www.ads-software.com/plugins/admin-dashboard-site-notes/Forum: Plugins
In reply to: [Google No CAPTCHA reCAPTCHA by WisdmLabs] I am a robot?Thanks WisdmLabs! I had the same “session expiry” problem. Modify the php ini has solved it.
Forum: Plugins
In reply to: [Contact Form 7 reCAPTCHA Extension] CF7 shortcode not displaying@jberg1 Superb!
Ops! I thought that option had no effect with the function for manipulate the Navigation Menu. Thanks.
Forum: Plugins
In reply to: [WP-Lifestream2] [Plugin: WP-Lifestream2] Favicon and CSS labelsForum: Installing WordPress
In reply to: False comments after upgrade to 2.9.1I’m still having this issue, getting a random number of comments per post.
I tried to activate the default WordPress theme to see if it is a problem of my theme. Nop, even the default theme shows a wrong count.
Any help please?
Forum: Installing WordPress
In reply to: False comments after upgrade to 2.9.1My comments number are crazy after upgrade too. It shows a random number of comments in every post: gelo.tv
I’m using
comments_number('0', '1', '%');
I have no clue of what’s going on. Maybe ZDmultilang plugin is doing something wrong?Forum: Fixing WordPress
In reply to: Page Jump using next_posts_linkI’ve posted the solution here ??
Forum: Themes and Templates
In reply to: Anchor link with posts_nav_linkFinally, I’ve found the solution HERE!!
There are two undocumented functions that will return the Next Posts and Previous Posts URLs:
next_posts ()
&previous_posts ()
The syntax for creating a navigation with anchor links would be something like:
<a href="<?php previous_posts(); ?>#lemonlines">« Go Forward in Time</a> ∞ <a href="<?php next_posts(); ?>#lemonlines">Go Back in Time »</a>
The problem here is that both links will still show even when we are in home or in the last page. To show only appropriate links use:
<?php $the_last_page = $wp_query->max_num_pages; $loaded_page = intval($paged); ?> <?php if ( $the_last_page == $loaded_page) { ?> // if is the last page <a href="<?php previous_posts(); ?>#anchor">« Go Forward in Time</a> // only link to newer posts <?php } elseif ($loaded_page == 0) { ?> // if is home <a href="<?php next_posts(); ?>#anchor">Go Back in Time »</a> // only link to older posts <?php } else { ?> //otherwise <a href="<?php previous_posts(); ?>#anchor">« Go Forward in Time</a> ∞ <a href="<?php next_posts(); ?>#anchor">Go Back in Time »</a> // links to newer and older posts <?php } ?>
Cheers,
geloForum: Fixing WordPress
In reply to: Page Jump using next_posts_linkI’ve the same problem: https://www.ads-software.com/support/topic/283092?replies=4
I haven’t got an answer too.
Forum: Themes and Templates
In reply to: Anchor link with posts_nav_linkThe previous solution was an ugly hack that now I’ve discarded.
Someone can tell me how to add an anchor link to the output of posts_nav_link?
Forum: Themes and Templates
In reply to: Anchor link with posts_nav_linkMiddle solution here: https://www.ads-software.com/support/topic/284156?replies=2
Forum: Fixing WordPress
In reply to: Add an anchor element to the link returned by wordpress functionsOK, I finally decided to add a conditional autojump. This code will detect if the user is in home (where i want everybody to see and read the header content) and if there is already an anchor tag in the URL. If none of these conditions are true then it will jump to the defined anchor tag (where you’ve the main blog content, posts, etc.)
Hope this is useful for anyone using big headers:
<?php
global $anchor_var;
$Url="Http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; // get browser URL
$mystring = '#';
$pos = strpos($mystring, $Url); // detect if '#' is in the URL
if (($pos === false) && (is_home())) { // If there is no '#' and we are in the home page
$anchor_var = false;
} else {
$anchor_var = true;
}
?>
<?php if ($anchor_var) : ?>
<body onload="location='#YOUR_ANCHOR_TAG'"> // jump to the anchor
<?php else : ?>
<body> // don't jump
<?php endif; ?>
Forum: Themes and Templates
In reply to: Anchor link with posts_nav_linkcan anyone help me pleeeease? ??