billionstrang
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Set Up Streaming for Local Radio StationI have looked into this a little bit, but not actually done it yet. My understanding was that you need to get streaming software and then embed it on the page. There is a lot of streaming software available, and some of it is free.
Then it’s up to your service provider to make sure you have enough bandwidth to adequately stream your content, which they will, of course, charge extra for.
That’s my understanding, but I will watch this thread because I might be doing this in the near future.
Forum: Fixing WordPress
In reply to: making the READ MORE button appear automaticly after XX wordsYou could try this in your functions.php (in a child theme.)
/* EXCERPT LENGTH */ function new_excerpt_length($length) { return 36; } add_filter('excerpt_length', 'new_excerpt_length');
Change “36” to however many words you want. Then set your page to display excerpts. In twentyeleven, you would do that in the content.php but if you are using a different theme it might be different, you’ll have to ask the designer.
Forum: Fixing WordPress
In reply to: Post images no longer showing upI had this problem once and eventually figured out that my images (the ones not showing) were in CMYK instead of RGB. They would appear on Firefox, but not IE. It was pretty frustrating, but it turns out that IE is correct because CMYK is technically not proper for the web.
But after looking at your site, I agree with Clayton, that they somehow got misplaced.
Forum: Fixing WordPress
In reply to: How to change post page titleYou should create a child theme before you start modifying the code. In your case you just need a style sheet and a functions.php file. then you can add support for menus to your functions.php file, and away you go. It’s not very difficult.
The way you’re doing it is too complicated and you’re messing up your original theme.
https://codex.www.ads-software.com/Child_Themes
I might also suggest that if your theme doesn’t support menus, it might be time to upgrade.
Forum: Fixing WordPress
In reply to: How to alternate post styles in twentyelevenOK, So this is what I did to alternate the thumbnails left and right in Standard format only:
In the index.php,<?php while ( have_posts() ) : the_post(); ?>
<?php $format = get_post_format();
if ( false === $format )
$format = 'standard'; ?>
<?php get_template_part( 'content', $format ); ?>Then create content-standard.php, and at the top, you put:
<?php global $oddeven; $oddeven = ( $oddeven == 'odd' ) ? 'even' : 'odd'; ?>
<article id="post-<?php the_ID(); ?>" <?php post_class($oddeven); ?>>
I left content.php in its original state, and adjusted “standard” post display in the content.standard.php.
It appears that this is working perfectly, though I don’t understand why “global” makes the difference. Any chance of an explanation?
Thanks everyone who helped.
Forum: Fixing WordPress
In reply to: How to alternate post styles in twentyelevenI take that back – It won’t work applying the odd/even code to just one format.
Forum: Fixing WordPress
In reply to: How to alternate post styles in twentyelevenThanks you guys!
With alchymyth’s code and Tom’s suggestion of putting it in each content-whatever.php it alternates all the way through.
But actually, I only want the standard formatted posts to alternate. I figured out that I can create a content-standard.php file and only apply the code to that, and it would work (in theory) except that “standard” is the only format that doesn’t have a format! I know it will work, because I tried it on one of the other formats.
Codex says to put in: `$format = get_post_format();
if ( false === $format )
$format = ‘standard’;`
https://codex.www.ads-software.com/Function_Reference/get_post_format
which makes sense to me to define “false” as “standard” but I tried putting it in the loop, and in the function.php, with no results.Does anyone know how to make wordpress see content.standard.php, or should I start a new thread for this?
Forum: Fixing WordPress
In reply to: How to alternate post styles in twentyelevenActually, I see the problem. If I have a post formatted differently, like “link” or “aside” it breaks. If I have them all formatted standard it works.
Forum: Fixing WordPress
In reply to: How to alternate post styles in twentyelevenThanks alchymyth, That’s getting close. It only alternates the first two posts though. I suppose I have to rewind the loop maybe?
Here’s the basic illustration of what I’m trying to do:
https://zoom-level.com/wolf-audio-mockup/I won’t be able to work on this today, but I’ll let you know if I get it figured out. Thanks for your time.
Forum: Fixing WordPress
In reply to: How to alternate post styles in twentyelevenThe loop seems to be split between the index.php and the content.php. I’m trying to alternate the posts that have standard formatting, since those are the ones that have thumbnails. I thought it would be simple to do, so I designed a mock-up for my client, but now I’m not sure I can deliver.
Forum: Fixing WordPress
In reply to: How to alternate post styles in twentyelevenThanks, tomaltman,
I’ve seen and tried about 50 different variations on the odd/even or the $i++ modulus operator, and none of them work in twentyeleven.
I have a fairly weak grasp of php, so I can’t figure out the solution, but I fear that it either isn’t possible (in twentyeleven) or extremely complicated.
Did your method work in twentyeleven?