Connor Crosby
Forum Replies Created
-
Forum: Themes and Templates
In reply to: How to delete date when article is posted and categoryIf you just remove that part of the code, it should not produce any errors. What you could do is change the code to
<?php // the_category(); ?>
and<?php // the_date(); ?>
. By adding two slashes after<?php
you are commenting them out. This means they are still in the code but will not be published on the page. So, that way if you ever need them again, all you need to do is remove those two slashes.Forum: Themes and Templates
In reply to: How to delete date when article is posted and categoryAre you asking how to delete the date and category that is displayed on the post? If so, it depends on which theme you’re using. Each theme has a unique structure it uses for code.
Generally, you want to look in the single.php page. Find the following code
<?php the_category(); ?>
. By removing that it will no longer display the category.The date is a little trickier to find. You want to look for something that says
<?php the_date(); ?>
. It may look a little different so it might be a little hard to find. But just remove that and you should be good.Forum: Themes and Templates
In reply to: Display Page Navigation If More Than One Page@alchymyth excellent! That worked! Next time I’ll look at the default themes before posting here ??
Forum: Themes and Templates
In reply to: Want to show Post Titles OnlyYou’re welcome! In case you did not know, that basically made that a PHP comment. The code is still there, but WordPress skips over it. So, if you ever want to add that back, simply remove the comments /* and */
Forum: Themes and Templates
In reply to: Want to show Post Titles OnlyYep! This will be very easy as long as the main blog page and the category don’t reference the same file.
Simply navigate to your theme files and go to index.php (or possibly home.php). Then find where it says
<?php the_content(); ?>
and simply comment it out like so:<?php /* the_content(); */ ?>
. That should do the trick.Forum: Themes and Templates
In reply to: Display Page Navigation If More Than One PageThat sorta works. While it does remove the whole
.navigation
, now if there is more than one page it won’t display at all.Forum: Themes and Templates
In reply to: Display Page Navigation If More Than One PageHi Andrew, thank you for your help. Unfortunately, that code will not work in my situation.
Currently I have the following code:
<nav class="navigation"> <div class="nav-count"><?php current_paged(); ?></div> <div class="nav-links"><?php posts_nav_link('<span class="nav-sep">⋅</span>','« Previous Page','Next Page »'); ?></div> <div class="sep"></div> </nav> <!-- end #navigation -->
I would like this to only display if there is more than one page. Currently, the only thing that does not show is the previous and next link. But, I would like the whole
.navigation
div to not show if there is only one page. How can I do that?Forum: Fixing WordPress
In reply to: Remove link from comment countAh that did the trick. Thanks!
Hi Otto,
I also am having issues with automatic publishing. The plugin set up fine and I have green lights for all the token checks. However, it seems that none of my scheduled posts are getting automatically published onto my Facebook page. I have to manually go to each post and log in and press publish to FB page. If I do not do that, then 1) it won’t be published on the page and 2) the comments section on that specific post says the URL is unreachable.
Please help us! I would love to use this plugin!
Forum: Fixing WordPress
In reply to: Featured / Breaking News Post Outside LoopWow, I should really google before posting here. I ended up code found on this page.
Forum: Fixing WordPress
In reply to: Get Category Feed URLSweet!! Thank you very much for your help esmi, I truly appreciate it ??
Forum: Fixing WordPress
In reply to: Get Category Feed URLThat works, except it’s the wrong URL. Instead of just being example.com/category/name/feed/, it’s example.com/category/name/name/feed/ – meaning the category slug appears twice. Any way to fix that? Again, I appreciate your help ??
Forum: Fixing WordPress
In reply to: Get Category Feed URLSo close! For some reason it displays both the slug and ID. Anyway to display just the slug? I’d really like to implement this feature into my blog. I appreciate the help! ??
Forum: Fixing WordPress
In reply to: Get Category Feed URL@esmi: That did work… sorta. Here is the code I used:
<a id="heading-rss-link" href="<?php get_query_var('cat') ?>/feed/" title="Subscribe to only posts from "<?php single_cat_title(); ?>" via RSS">Subscribe</a>
When I used that, for some reason that links to example.com/feed/. When I remove the “/feed/” it then links to the current category url. Is there any way I can fix that? Thank you! ??
Forum: Fixing WordPress
In reply to: Get Category Feed URL@hulku: I’d prefer not to use a plugin. Anyone know of a PHP code I can use to grab the slug of the current category?