Chip Bennett
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Restore the Default Home PageWhen I go into Dashboard/Appearance>Theme Options>Home Page, the content I wrote still appears but when I view site, I’m still seeing the blog post stuff on the Home page. I must be missing a setting somewhere to remove the blog page stuff.
This sounds like it is a Theme-specific issue. What Theme are you using?
Forum: Themes and Templates
In reply to: Trouble Using template_redirectDid I post this in the wrong place? Just wondering if anyone can help me with this or if I need to post it in another section of the forums???
Note: wait at least a day before responding to your own post. Otherwise, the people who look for topics without replies will see that your post has been replied to, and may pass over it.
There are several things here; the first one is that, if you’re trying to target a single blog post that has a certain category, then
is_category()will never returntrue. Theis_category()conditional returns true when a category archive index page is being displayed. You probably want to use thein_category()conditional instead.However, I think there are other, better ways to do what you’re trying to accomplish.
The easiest is probably using template-part files. Inside of your
single.php, abstract all of the loop code into a separate, template-part file, namedloop.php. Then include that template-part file viaget_template_part(). So, like so:/** * Single blog post */ get_header(); get_template_part( 'loop' ); get_footer();Now, abstract the loop part of
salesposts.phpinto a file calledloop-sales.php.Then, include one or the other of
loop.phpandloop-sales.php, using an appropriate conditional:if ( in_category( get_cat_id( 'for-sale' ) ) ) { get_template_part( 'loop', 'sales' ); } else { get_template_part( 'loop' ); }That’s probably the approach I would take, anyway.
Forum: Themes and Templates
In reply to: featured image in post titleWhat are the specific dimensions of the featured image that you want to display with/in place of the post title?
Forum: Plugins
In reply to: [Bitly's Wordpress Plugin] Shortlink in WP-Admin Bar is not workingI tried swapping to Twenty Twelve and the admin link works, but when I swap it back it doesn’t. My theme is ancient as I’ve been long overdue to update, so my guess is that it must have something to do with that.
Yep, that observation would seem to indicate that the problem is with your Theme.
The template is based off one called Twilight if that is of any use.
If you were using a Theme from the official Theme directory, I could probably offer some help; but I’m not finding a “Twilight” Theme in the directory.
For many reasons, it is a good idea always to use an up-to-date Theme. It might be time to try to find a current Theme that suits your needs. 🙂
Forum: Plugins
In reply to: [Bitly's Wordpress Plugin] Shortlink in WP-Admin Bar is not workingPlease, always start a separate support topic. It helps to ensure that each person’s support issue is resolved.
Further questions:
1) What are the differing links? Do they resolve to the same URL, or to different URLs?
2) Do you experience the same problem with all Plugins deactivated?
3) What Theme are you using? Do you experience the same problem with a core-bundled Theme, such as Twenty Twelve, activated?Forum: Fixing WordPress
In reply to: Stuck in WordPress hell!Esmi, you just confirmed you don’t read what I told you. Turning off every plug-in and reverting back to some default theme won’t do squat for changing the slug name.
That only matters under the assumption that the issue you’re experiencing is somehow caused by page slugs, or some other WordPress core-specific problem, rather than being caused by your Theme.
I know that, don’t you?
No, actually, we don’t know that the issue you’re observing has anything specifically to do with page slugs. You’re merely assuming that.
The point of disabling all Plugins and switching to the core-bundled Twenty Twelve Theme is to eliminate Theme-related issues.
If, after performing the basic troubleshooting step of disabling all Plugins and switching to the core-bundled Twenty Twelve Theme, you still observe your issue, then and only then can you be sure that the problem is WordPress-related.
However, if you find that your issue cannot be observed with Twenty Twelve active and all Plugins disabled, then the problem is not WordPress-related, and you will have to do further troubleshooting.
At that point, you will need to activate your Theme. If, after activating your Theme, your issue is once again observed, then the problem is related specifically to your Theme. In that case, you will need to seek support from the Theme developer, as we cannot provide support here for commercial Themes and Themes not hosted in the official Theme directory.
Please try to understand my FRUSTRATION level.
Your frustration level correlates directly to your unwillingness thus far to follow the standard, basic, step-by-step troubleshooting tips that several people have asked you to do.
If you remain unwilling to switch to Twenty Twelve and disable all Plugins, and then report back whether you still observe your issue, then there isn’t a single thing anyone in these forums can do to help you. Perhaps you would be willing to try to understand their frustration?
Forum: Themes and Templates
In reply to: Is this a jQuery conflict I see here?Actually I didn’t describe my problem accurately enough in my opening post — I was using PrettyPhoto, which is basically a plugin, but hard-coded into my template files
The Plugin more than likely updated its scripts, to maintain compatibility with the latest jQuery version(s). While it’s perfectly fine to incorporate a Plugin directly into a Theme, the caveat is that you have essentially forked that Plugin, and thereafter have to ensure that you pull in upstream changes into your fork – especially with script-heavy/dependent Plugins.
You might be better off integrating support for that particular Plugin into your Theme, and then just install/activate the Plugin.
Forum: Plugins
In reply to: [cbnet Different Posts Per Page] Am I dense?Hi caitic,
First: no question is a dumb question. We all ultimately started at the same place. 🙂
This Plugin isn’t really designed to do what you’re trying to accomplish. It sounds like you want your site front page to display the latest blog post, and then have all other posts appear on a different page?
If so, you really want to look at using a static page as your site front page. Reference the Codex here:
http://codex.wordpress.org/Creating_a_Static_Front_PageFollow those instructions, and you’ll have a static page as your front page, and your blog posts index on a separate page. At that point, you’ll be half-way to where you need to be.
The next thing you’ll need to do is create a special, custom page template, named
front-page.php, to display your custom content. In your case, your custom content will be a loop with the single, most-recent blog post.Without knowing what Theme you use, I can’t provide specifics, but assuming your
page.phptemplate looks something like this:<?php get_header(); ?> <div id="content"> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <?php // Loop markup here ?> <?php endwhile; endif; ?> <?php get_sidebar(); ?> </div> <?php get_footer(); ?.You’ll need to make a change to this part:
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <?php // Loop markup here ?> <?php endwhile; endif; ?>Replace that with this:
<?php $latest_post_query_args = array( 'posts_per_page' => 1 ); $latest_post = new WP_Query( $latest_post_query_args ); ?> <?php if ( $latest_post->have_posts() ) : while ( $latest_post->have_posts() ) : $latest_post->the_post(); ?> <?php // Loop markup here ?> <?php endwhile; endif; ?> <?php wp_reset_postdata(); ?>Now, WordPress will use your
front-page.phptemplate to render the static front page, and the front page will display the latest blog post.Forum: Themes and Templates
In reply to: Is this a jQuery conflict I see here?Ensure that all of your scripts have jQuery no-conflict wrappers:
jQuery(document).ready(function($) { // Inside of this function, $() will work as an alias for jQuery() // and other libraries also using $ will not be accessible under this shortcut });For example, your seso script:
jQuery(document).ready(function() {See the problem?
Forum: Themes and Templates
In reply to: Custom Template DesignOkay, let’s clear up some licensing misconceptions:
First thing first you will have to start from scratch. You can not use other peoples code and then sell it (you can but is very frowned upon and go as far as being sued).
This statement is unequivocally false. Any GPL-licensed work can be used for any purpose, modified in any way, and distributed – for free or for cost – either as-modified or unmodified. You will not be sued for redistributing a GPL-licensed work, modified or unmodified.
I didn’t mean stealing someone elses custom template code and reselling it. What I meant was downloading one of the free templates and starting out with some amount of code even if it’s very basic rather than starting from scratch. Then I would customize the CSS to my liking and sell the custom design. I believe I am allowed to do that as everyone is doing it that way, it’s nothing unusual but very common.
Correct.
The only caveat is that, if the original code is licensed under GPL, then you must retain that original license when re-distributing that work, or when distributing a derivative of that work.
Who is doing this? This is very illegal. If you have permission from the original author, then maybe it would be ok. What you just said is illegal and can result in you being sued, if the author feels the need.
This is another unequivocally false statement, when the original works being discussed are distributed under GPL. In fact, these things are the very freedoms intended to be protected by the GPL.
Just because code is open source, does not make it free to call your own.
There are two issues here: proper copyright attribution, and trademark.
The GPL requires that any re-distributed work, or any distributed derivative work, must retain the original author’s copyright and license declaration. Doing so prevents “claiming copyright” for the work by the downstream author.
Trademark is an entirely separate legal concept from copyright. Many font licenses will say something like, “you are free to modify this Awesome Foobar font, but you can’t call the modified font Awesome Foobar.” That’s a trademark issue, not a copyright issue, and the same would be generally accepted for Themes. Anyone is free to modify Twenty Twelve, and then distribute that modified work, but they would not be able to call their modified work “Twenty Twelve”. They’d need to name it something else.
So, go do a search on Etsy.com for WordPress themes and look at the listings. Are ALL these people doing something illegal by selling these? I can see when I look at certain ones that the code is from a simple child theme layout and they are just customizing it with their own graphics or whatever and making a CUSTOM design. Obviously, they started with a simple bit of code and built upon it. Is this really illegal?
You are correct. That is absolutely not illegal. It is perfectly legal.
So ANY theme whether you purchase it or it’s free is for personal use ONLY???
Not correct. Any GPL Theme, whether free or commercial (paid), you are free to use for any purpose whatsoever.
So, people are buying themes and using free themes and NONE of them are using those themes to create websites for their customers?
Not correct. Again, assuming that said templates and Themes are distributed under GPL, it is perfectly acceptable to use them to make client sites, or to modify and resell, or do whatever you want to do with them.
So, for example, if I take the wordpress Twenty Twelve template to use as a basic layout to start and customize it with graphics, content, widgets, etc. then I can’t sell that design to a customer? Is that correct??????
Not correct. The only stipulation is that your modified version of Twenty Twelve must retain the original license: GPL. Of course, since that work would belong to your client, who would very likely never want to re-distribute it, the license becomes essentially irrelevant.
(The GPL only applies to a work upon distribution. The GPL explicitly says that it does not restrict you in any way to do anything you want to do with a work, unless and until you distribute it.)
So what I’ve learned so far here is that themes are for personal use only. Everyone who is selling custom template/themes where they have modified the CSS style and layout to their customers specifications are doing so illegally. Everyone selling wordpress websites/blogs must code their templates from scratch no matter what and NEVER use a free or purchased theme unless it’s for their personal use only. If this were all true I don’t think WordPress would have many users.
You are correct. None of the above is true. A GPL-licensed Theme can be used for any purpose whatsoever, personal, commercial, or anything else. It is perfectly acceptable under the terms of the license to re-sell a GPL-licensed work, or to sell a modified version of a GPL-licensed work, provided that you retain the original, GPL license on whatever you distribute.
That pretty much sums up what info I’ve gathered from this post and I don’t believe most of it for a minute. I don’t believe either that all the people doing this are breaking the law. I think some people have really bad attitudes that don’t want to tell you how to do something because they fear competition.
I would chalk it up to simple misunderstanding of the license, rather than any ulterior motives such as preventing competition.
Really it is not our place to give legal advice, so we usually just throw out a link to the GPL license and leave it at that.
I will give this bit of legal advice: if you choose to get a Theme from someplace other than the official Theme directory, be aware that not everyone distributes their Themes under GPL. While it is the philosophy and policy of the WordPress project, and anyone affiliated with the WordPress community, that Themes should be distributed under the GPL since WordPress itself is distributed under GPL, not everyone shares that opinion.
Thus, if you get a Theme from such a person, and that Theme is not explicitly distributed under the GPL, you will need to adhere to the terms of whatever license the Theme is distributed under. Otherwise, you may incur liability for copyright infringement.
If you find the terms of such a license to be too restrictive (or the prospect of being liable for copyright infringement – especially if you intend to make and distribute derivative works – too much of a risk), then I would choose not to use such a Theme, and instead find one of the thousands of free and commercial Themes that are licensed under GPL.
Hi, vazzoha,
Thanks for the kind words.
Formatting of the email itself is really outside the scope of the Plugin; the only intent of the Plugin is to allow customization of the list of email addresses to which the email itself is sent.
Because the email function itself is Pluggable rather than filterable, currently it’s really difficult to use different Plugins to accomplish different things (e.g. one Plugin to change the list of email addresses to which the email is sent, and another Plugin to change the formatting of the email itself).
However, to help address that limitation, I’ve submitted a core patch to make the email address list filterable in the email function itself; if/when that patch gets accepted, I’ll change the Plugin to use the filter, rather than Plugging the function completely. That way, it will work nicely with other Plugins that modify the email text.
Forum: Reviews
In reply to: [cbnet Multi Author Comment Notification] Works MarvelouslyThank you for your kind review!
Forum: Plugins
In reply to: [cbnet Multi Author Comment Notification] cbnet stopped workingHi vazzoha,
What change did you make? Did you modify
pluggable.phpin WordPress core, or in the Plugin?Forum: Plugins
In reply to: [cbnet Really Simple CAPTCHA Comments] Update for WP 3.5?Doesn’t work on 3.5, I confirm: no display at all.
Please start a new topic, as your issue may or may not be the same. It also helps me to track support, so that I can ensure all issues are resolved.
Forum: Themes and Templates
In reply to: [Oenology] Translation and .po fileIf you find any missing strings, please file a bug report, and I’ll be happy to make them translatable.
(Note: I don’t think I’ve completed making all of the help documentation translatable; I’m not sure I intend to.)