uxte
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Custom functions.phpThis was a dumb question…
Just add the custom functions to a functions.php file inside your theme directory. WordPress automatically includes this file.
Forum: Plugins
In reply to: get category ID from SlugI have just tried and it worked ;D
Forum: Plugins
In reply to: get category ID from Slugbypan6 had the right answer though…
$catid = get_cat_id(‘slug’);
echo $catid;Forum: Requests and Feedback
In reply to: Problem with my query_posts requestHi, I have the same problem.
Did anyone come up with a solution for this? I know that the problem is by excluding the category with the “-” signal.
Forum: Fixing WordPress
In reply to: How to use single.php as front page?Ok I found the answer.
Put this before the loop:
<?php $wp_query->is_single = true; ?>
Thanks to https://www.scriptygoddess.com
Forum: Fixing WordPress
In reply to: convert “link_pages” to “wp_link_pages”Thanks tsguitar,
I have tried all options with wp_link_pages and I’m stuck… I don′t understand how can it be that I can’ figure out this one.
Anyway I was hoping that someone that tried to achieve the same had the explanation for this. i guess I’ll just stick to link_pages.
And if you’re going to bump, try to at least give an update on what you’ve tried to do since you last posted, things you’ve read, experiments that failed, etc. That’ll help us know what you’ve already tried and tell us that you aren’t just sitting on your hands in the meantime.
That’s what I did in the previous post before bumping it.
Thanks
Forum: Fixing WordPress
In reply to: How to use single.php as front page?Anyone?
Forum: Fixing WordPress
In reply to: convert “link_pages” to “wp_link_pages”Hey tsguitar thanks for the reply but I had tried that already with no success.
What happens is that it doesn’t show the image and it shows both previous and next links while I want to show them separated, one for Next page and one for Previous page so I can style them differently.
Forum: Fixing WordPress
In reply to: [HELP] if page_linkOk I found the answer for this one, thanks Otto42 for the hint ??
If anybody’s looking for the same here is the code:
<?php if ( $numpages > '1' ) : echo $numpages; else : echo no pages; endif; ?>
Forum: Fixing WordPress
In reply to: Finding if <!–nextpage–> existGreat Otto42 thanks for the hint ??
If anybody’s looking for the same here is the code:
<?php if ( $numpages > '1' ) : echo $numpages; else : echo no pages; endif; ?>
Forum: Fixing WordPress
In reply to: [HELP] if page_linkBump
Forum: Fixing WordPress
In reply to: [HELP] if page_linkThanks for the reply tsguitar,
The code I’m using is bellow:
<div id="pagenav" class="navlink"> <span class="alignleft"><?php link_pages('', '', 'next', '', '<img src="wp-content/themes/brink/images/button_prev.gif" alt="Previous button"/> Previous page'); ?></span> <span class="alignright"><?php link_pages('', '', 'next', 'Next page <img src="wp-content/themes/brink/images/button_next.gif" alt="Next button"/>', ''); ?></span> </div>
I’m using images for the navigation and the “pagenav” has a background associated with it. Like it is right now when there is no subpages it shows the “pagenav” background, what I want is that in that case nothing shows. Basically I want to show/hide the pagenav div depending on if there are subpages or not.