popstalin
Forum Replies Created
-
Done.
Subject: Customizing who to send notifications toForum: Networking WordPress
In reply to: Sharing css files across all blogs in multisiteYes, I know it’s relative to that site. I was wondering if there was a way similar to the code I provided. Obviously, I didn’t make that clear. For now I’ve created a theme folder called css-ie and placed my IE css files in there and linked absolutely to those files.
I was hoping for a “cleaner” way to do that. ??
Forum: Fixing WordPress
In reply to: Arranging content by categoryI think a shortcode could work. Any links you could point me to, that would show me how this is done?
Thanks!
Also, I guess another way to look at this would be custom post type templates for the homepage, so if I’m using custom post type 01, then I dynamically load custom-post-01.php, if it’s custom post type 02, then use custom-post-02.php to display the posts.
Is that possible? I’ve been searching but all I’ve found is single.php and archive.php info for custom post type templates. These are posts, not pages.
Forum: Fixing WordPress
In reply to: Change menu font using ANyFontAccording to the FAQs on the AnyFont plugin page, you need to do the following to get your custom menu font’s to behave:
I am using the new menus available with WordPress 3.0 and I can’t get AnyFont to automatically change the menus. Are the new WordPress menus supported by AnyFont?
Yes, the new menus in WordPress 3 are supported, but for them to work automatically with AnyFont, you will need to make sure that the ‘Title Attribute’ is set for each entry in your menu.
Forum: Fixing WordPress
In reply to: Custom menus, widgets and conditional statementsThe moderated code from Pastebin:
https://pastebin.com/3Rn2amv0Forum: Fixing WordPress
In reply to: Custom Excerpt Text in Functions.phpThat may work but a co-worker and I created some PHP magic with the following:
<?php $content = $post->post_content; $content = strip_shortcodes($content); $content = str_replace(']]>', ']]>', $content); $content = strip_tags($content); $excerpt_length = 35; $words = explode(' ', $content, $excerpt_length + 1); if(count($words) > $excerpt_length) : array_pop($words); array_push($words, '…'); $content = implode(' ', $words); endif; echo $content; ?> <a href="<?php the_permalink(); ?>">Read and Comment (<?php echo comments_number('0', '1', '%'); ?>)</a>
It works for what I need and may well work for others too. This isn’t in the functions.php file but like I said, it works.
Forum: Fixing WordPress
In reply to: Custom Excerpt Text in Functions.phpThanks richarduk! I’ve seen that but my problem is, I need it to be custom. I don’t want the other excerpts I’m using picking that up as well. Does that make sense?
Forum: Fixing WordPress
In reply to: Sidebar Widget – Show on Condition of content?I guess I’d be the widget developer. However, once it’s set up, it should be left alone. Basically, I’m looking for the following:
if there is content show “spotlight” widget
if there is no content, do not show “spotlight” widgetForum: Fixing WordPress
In reply to: Creating “jump link” to next postSo, I created a way to do this in case there isn’t an easy way to do it with WP functions, etc.
I created a custom field for the previous posts’ id and then called the meta in my template. It’s not ideal but it works.
<?php $prevPostID = get_post_meta ($post ->ID, 'previous_post_id', true); ?> <?php if ($prevPostID) { echo '<a href="' . $prevPostID.'">Next Project</a>'; } ?>
Forum: Fixing WordPress
In reply to: Creating “jump link” to next postI’ll have maybe 5 posts on one page. There will be the title, plus date and tags and off the the right will be a jump link that says “next project”.
Below the title and meta info, will be a large screenshot and then text to the right of it. The screenshot could be 1800 pixels long (depending on the length of the page). I want to be able for the viewer to click on “next project” and jump/scroll to the post below that (the previous post). On the next post, I’d like the same action, etc.
Make sense?
Thank you, nowhere that I could find told me that was a necessity.
Forum: Fixing WordPress
In reply to: Comment Order : Want Descending by NewestThat block only applies if you’re using the threaded comments. However, I’m looking for the same information as you. (I don’t want paged comments just the order changed).
Forum: Fixing WordPress
In reply to: Customize Page TitlesNo, now I’m getting ” | The Maxx Club Online.” Still not getting the page title. I’m guessing what is happening is that it thinks it’s the homepage, since I’ve got it set-up to be the blog and not pulling the correct title.
I need to figure out how to the PHP to call the actual page title instead of it being the “home page” if that makes sense.
Forum: Fixing WordPress
In reply to: Customize Page TitlesI took that extra bit out and now it’s showing ” | The Maxx Club Online.” It seems to me it’s using the Main Index Template instead of the Events template. I also decided to use just this code:
<title> <?php wp_title(''); ?> | <?php bloginfo('name'); ?> </title>
Forum: Fixing WordPress
In reply to: Customize Page TitlesThis is the code for the events template:
<title>Events | <?php bloginfo('name'); ?><?php } ?></title>
This is the code for all other headers:
<title> <?php if ( is_home() ) { ?> <?php bloginfo('name'); ?> <?php } else { ?> <?php wp_title(''); ?> | <?php bloginfo('name'); ?> <?php } ?> </title>