dorich
Forum Replies Created
-
Forum: Plugins
In reply to: [BulletProof Security] Why am I getting "..Undefined Index…" Messages?Thanks.
I used the first suggestion, and that solved the problem.I found I didn’t have the second and third items in my wp-config.php file. So I added them and set them to false.
Thanks for the help.
Forum: Plugins
In reply to: [WP-Footnotes] Can you include hyperlinks as the reference?Not a problem with the plugin but with my blogging software.
Forum: Plugins
In reply to: [WP-Footnotes] Can you include hyperlinks as the reference?Update: Ah, the problem is with the <iframe> tag.
Forum: Plugins
In reply to: [ShortCodes UI] Short code removed after editing code@conrad90
I’m a neophyte on this subject but I believe that the process of linking to JS files is to register them in the functions file, so they are now universally available by calling their handle. Then, still in the functions file, you can call them on a page by page basis, using the enqueue function. This set up method also provides control over the dependency of the scripts. For example since you want the jQuery library to load before the script in question you can define the dependency in your registration. That way the library will load before the script in question.In this manner WP does the work for you and there is no need to add the script to the header.
Regarding the use of $, I think you will find that you can use
jQuery(document).ready(function($) {})
…. and from then on in your script you can use $The codex reference is here.
Forum: Plugins
In reply to: [ShortCodes UI] Short code removed after editing code@conrad90
Apologies but I don’t recall the solution. My best guess is that it had something to do with registering and enqueueing scripts but I can’t be sure.Forum: Plugins
In reply to: [ShortCodes UI] Short code removed after editing codeUpdate:
I tried an experiment with a simple text short code.
The short code was shown in the short code list and was being inserted into a page where the short code was used.Then I edited the contents of the short code and upon clicking update it was converted to a post and removed from the short code list.
Forum: Fixing WordPress
In reply to: Re-installing WordPress after site hackthanks for the links. I reviewed them and found a lot of useful information to add to the process of cleaning up the site with a clean install.
Forum: Fixing WordPress
In reply to: Re-installing WordPress after site hack@seriousowl: I do have backups from each WordPress upgrade but I think I’ll stick with the file deletion approach.
ThanksForum: Fixing WordPress
In reply to: Re-installing WordPress after site hackThe only symptom I have is that the “readme.html file is being redirected when I view it. While its possible that this is the only problem on the site I have a mindset that says that the best thing I can is to remove the current installation and start again.
You raise a good point that I hadn’t considered. I have to remove the existing database and create a new one.
I plan to download the posts into a desktop blogging application. So I’m assuming that with a new database I can then safely upload the saved posts to the new database.Thanks
Forum: Themes and Templates
In reply to: How To Display Specific TermsThe solution to the problem is that by default terms having no posts are not displayed. This can be changed by adding “hide_empty”=>0 to the parameter list.
Forum: Fixing WordPress
In reply to: Sorting Custom Posts On Taxonomy Template@tracy
Thanks for your response, very much appreciated.The reason I didn’t use WP_Query is that I have shown that the posts I want have already be returned so it didn’t seem necessary to create a new query. Although obviously that is a way to solve the problem. However, I wanted to leverage the built-in functionality of WP and that was the reason for using the taxonomy template. The slug on the template defines the posts to be returned and so the problem seems to be how to get the returned posts sorted.
Along with your solution I’ll note here for anyone else who encounters this type of problem that you can solve it be adding a function and using the ‘pre_get_posts’ hook. I didn’t develop this solution, but you can see the full answer here.
Forum: Fixing WordPress
In reply to: Get ID of adjacent posts when sorted by custom fieldThe plugin “Next/Previous Post Link Plus for WordPress” does provide the capability to return the ID of the next and previous post.
Forum: Plugins
In reply to: [Plugin: Ambrosite Next/Previous Post Link Plus]Custom Field Value in LinkThe plugin does provide the capability to return the ID of the next and previous posts by using ‘return’ in the arguments.
Forum: Plugins
In reply to: [PHP Code Widget] Any Limitations?That solved it.
Thanks for the help.
I worked out one solution for this as follows:
$terms = get_the_terms( $post->ID , 'chapter'); if($terms) { *additional code to be added to the template* }
If any terms in the taxonomy ‘chapter’ are returned the additional code is added to the template otherwise the additional code is omitted.
I don’t know if this needs any additional error checking but the code as shown works by including code on the appropriate posts and omitting it where its not required.
Any suggestions on improvements would be welcome.