ucfknight10
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Prototype 0.1: displaying images full sizecan you please identify and post the code controlling the insertion of the image in your Prototype 0.1 theme?
and fyi, the
if
statement should work just fine. but let’s take a look at the code and see if we can figure it out.Forum: Fixing WordPress
In reply to: wpdb on a separate pagelol i think we were assuming that you were on a wordpress template, or had included the wp-blog-header.php file. lol. insert a require statement at the very top of the page, similar to this:
define('WP_USE_THEMES', false); require('./wp-blog-header.php');
if your file is in the root of your server, this should work fine. if not, you’ll need to adjust the path accordingly.
Forum: Fixing WordPress
In reply to: One recent post from each categoryglad it works ?? *mark as resolved*
Forum: Hacks
In reply to: Listing child categoriesjust so i can make sure: did you insert the code after get_header() ? i dont think it would make a diff, just want to make sure we have the same code going.
if you could, insert wp_die() throughout the code, with a different message for each, so we can maybe identify where the code breaks. i’ve inserted them into the pastebin if you want to just copy from there.
Forum: Fixing WordPress
In reply to: One recent post from each categoryhere is a list of hooks, in chronological order: https://codex.www.ads-software.com/Plugin_API/Action_Reference
Forum: Hacks
In reply to: Listing child categoriestry this out. insert the code at the top of archive.php, and let me know if it generates your desired results.
Forum: Fixing WordPress
In reply to: One recent post from each categoryyou would need to add a function to run on a hook that takes place before the query, and detect the user is viewing the home page, and disable the default query that way.
Forum: Fixing WordPress
In reply to: One recent post from each categoryso if a post is the most recent in two categories, it only shows that post for the first category, and then the second category it shows the second most recent post?
Forum: Hacks
In reply to: Listing child categoriesok let me work on this. i will get back to you when i have some code.
Forum: Hacks
In reply to: Listing child categories#0 Category A
#1 Child of Category A
#2 Grandchild of Category A
#3 Child of Category Awhen you’re viewing #0, you want to see #1 and #3?
just making sure i have a clear picture of what you want.
Forum: Fixing WordPress
In reply to: links don't work on homepagethe answer to your second question: i dont know about a fan page, but check out a plugin called WordBook https://www.ads-software.com/extend/plugins/wordbook/
Forum: Fixing WordPress
In reply to: How can i add a tag to all posts automatically?try this: https://csstyle.pastebin.com/B346xt8H. let me know if it works. it will add tags automatically on post publish/save if the tag doesn’t already exist.
Forum: Fixing WordPress
In reply to: How can i add a tag to all posts automatically?let me work on it.
Forum: Hacks
In reply to: Listing child categories#0 – Category A
#1 – Child of Category A
#2 – Grandchild of Category Aso when you are viewing #0, you want to see posts from only #1, and when viewing #1, you want to see posts from only #2?
Forum: Fixing WordPress
In reply to: How can i add a tag to all posts automatically?well, you could do a bulk edit of the posts and add the tags, tho that isnt automatic.
you could write a simple function in your functions.php to add the tags to the post on save_post if they don’t already exist.