phejster
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Permalinks Don’t Work@watermelonkid
I would have to disagree with the sentiment that the forum is useless as I have learned quite a bit from the users here. As you pointed out, some people sadly require a certain level of effort from the ‘asker’ before helping out, whether that be having the ‘asker’ reading the documentation or Googling for answer.Hopefully my response to webwhat helps you as well.
Forum: Fixing WordPress
In reply to: Permalinks Don’t Work@webwhat
Are you putting “https://www.domain.com/blog/%postname%” in the permalinks field or just “/%postname%/”? If you putting the whole URL that could be causing the problems you’re having.Forum: Fixing WordPress
In reply to: How to Link to current page in Footer???This is happening because the_title really only works within The Loop. There are a couple plugins that let you use functions like this outside of The Loop but their names are escaping me at the moment. Just do a search for ‘The Loop Plugins’ or something similar.
Hope that helps!
Forum: Fixing WordPress
In reply to: Display a link only to admin user levelI know this isn’t exactly what you’re looking for but it might be a starting point for you – it will let any logged in user see the link
<?php if (is_user_logged_in()) { ?><a href="LINK-GOES-HERE">LINK-TEXT</a></li><?php } ?>
You could also check out this page for a possible solution.
I checked the link-template.php in wp-includes and it looks like Filosofo’s fix went into 2.5.1, but I’m still having this problem. previous_post_link and next_post_link do not recognize category exclusion.
Here is my code:
<?php previous_post_link('%link', '%title', FALSE, '3'); ?>
Forum: Themes and Templates
In reply to: Using query posts in seperate single.php templatesDoes anyone have any ideas why the previous_post_link isn’t restricting the category I have specified? I’ve tried everything I can think of and been all over the forums but have found nothing.
<?php previous_post_link('<strong>Previous Article</strong>%link', '%title', FALSE, '3'); ?>
Forum: Fixing WordPress
In reply to: query_posts() disables “<!–more–>” functionalityI just posted about this problem in another thread – the answer is right here – https://www.ads-software.com/support/topic/175681?replies=2#post-790202
Forum: Fixing WordPress
In reply to: Read More Link QuestionI had this same problem, and I only found it after much searching and digging around. Surprisingly – or not so, depending on how you look at it – I found the answer here on the query_posts page https://codex.www.ads-software.com/Template_Tags/query_posts
If you want to use the Read More functionality with this query, you will need to set the global $more variable to 0.
If you want to use the Read More functionality with this query, you will need to set the global $more variable to 0. <?php // retrieve one post with an ID of 5 query_posts('p=5'); global $more; // set $more to 0 in order to only get the first part of the post $more = 0; // the Loop while (have_posts()) : the_post(); // the content of the post the_content('Read the full post ?'); endwhile; ?>
Hopefully that helps you and anyone else who comes looking for this answer.
Forum: Themes and Templates
In reply to: Using query posts in seperate single.php templatesOk, I think I’ve figured out most of it. What I’m basically trying to do is have one section of my site have only posts from one category and the rest of the categories in another section. I used the ‘Unique Single Template” hack from this page (https://www.webdesignerwall.com/tutorials/wordpress-theme-hacks) to split off the two sections.
Category ID 3 is the one I want on it’s own and I have it working now by changing the default previous_post_link to the following
<?php previous_post_link(<strong>Previous Entry</strong>%link', '%title', TRUE, ''); ?>
.However, in the catch all template I have replaced the previous_post_link with
<?php previous_post_link('<strong>Previous Article</strong>%link', '%title', FALSE, '3'); ?>
but it’s not working and still linking to posts in category 3.What am I missing?
Forum: Themes and Templates
In reply to: Listing Authors Names & DescritionsKaf, if I wanted to list Authors and Editors on the same page and specify their role within their profile, how would I do that?
I don’t see anything in the code that jumps out and says “Get Authors” that I could add to.
Forum: Themes and Templates
In reply to: Listing Authors Names & DescritionsKaf, Thanks for that!
After some tinkering I figured out how to make a new page with the template and it’s looking fantastic – https://blog.gmfus.org/?page_id=11
Thanks again!
Forum: Themes and Templates
In reply to: Listing Authors Names & DescritionsThanks for your help. I found how to create an author template and uploaded it and got it working – almost.
See https://blogsgmfusor.setupmyblog.com/?author=3 as my example. I have this line of code that doesn’t seem to be working…
<h2>Posts by <?php echo $curauth->user_nickname; ?></h2>Should I have replaced user_nickname or is that some default?