Eric Mann
Forum Replies Created
-
Yes, it uses the same category list.
Forum: Plugins
In reply to: [JS Banner Rotate] [Plugin: JS Banner Rotate] Image Link URL not workingNot working as in how?
And the link settings are for the entire banner element, not for each individual image. Using a pipe-delimited list of links will actually break the system.
Just remember, there aren’t any template tags that ship with this plugin by default … so
wp_publication_archive()isn’t supposed to work (and doesn’t exist in the global namespace anyway).If you want to call the function that renders the shortcode content directly, call
WP_Publication_Archive::shortcode_handler(). Just be sure to pass in your parameters as needed (“categories” and “author”).My recommendation would be to use
do_shortcode()in your PHP text. If you do that, you can use the exact same syntax and information you’d use otherwise.For example:
<?php echo do_shortcode( '[wp-publication-archive categories="cat-1" /]' ); ?>The shortcode you’re using looks fine, but without actually seeing your site and the publications I can’t provide any further help.
Forum: Fixing WordPress
In reply to: Want page to open a pdf fileIn that case, I recommend using a WordPress Menu. Most themes support this … but I can’t be sure about yours without knowing what theme you’re using. But you can build your menu by going to Appearance > Menus.
http://codex.wordpress.org/Appearance_Menus_Screen
Then just add a custom link. The text for the link will be “About Us” and the link itself will be to wherever you uploaded the PDF.
Forum: Fixing WordPress
In reply to: Want page to open a pdf fileThe page link will only link to the page. If you want to link to the PDF, you’ll need to provide a link to that PDF instead.
Where exactly are you trying to add this link?
There is likely something wrong with the way your server is set up.
The plugin itself uses a file (
openfile.php) to load the publications as attachments so they’ll download. To prevent people from using this file improperly (i.e. using your site to download/stream remote content), there’s a check at the top of the file to make sure the requested document is being served from your system.It looks like the fact that you’re using a “www” at the beginning of your domain is what’s breaking things. I can successfully download the files if I remove it. So here are two things you can do to fix the problem:
1) The easy way
After you upload a file, you’ll see the URL in the “Publication” field. Simply remove thewwwfrom the address.So
http://www.trinityboyceville.com/wp-content/uploads/2012/01/Test-PDF.pdfbecomeshttp://trinityboyceville.com/wp-content/uploads/2012/01/Test-PDF.pdfChange that, and it will work.
2) The hard way
Edit/includes/openfile.phpand remove these two lines:if ( strpos( $_GET['file'], (isset($_SERVER['HTTPS']) ? 'https|' : 'http|') . $_SERVER['SERVER_NAME'] ) === false ) die();They should be lines 5 and 6 of the file. This is a more permanent fix, but it will open you up to the possibility that your site is used to download/stream remote files … so I recommend using the easy way (#1) for now and I’ll try to work a more permanent fix into the next version.
No, this is not an error in WP Publication Archive.
WP Publication Archive hooks on to WordPress’ built-in
the_titlefilter. This filter is defined in/wp-includes/post-template.phpon line 118 and takes in two parameters – the title itself, and the ID of the post.WP Publication Archive adds a filter to this hook that also accepts two parameters, the title and the ID.
It looks like All in One Event Calendar is also adding a hook to this filter, but they’re adding a hook that doesn’t take two parameters.
If you want to skip this functionality all together, comment out the line that adds the title filter on line 53 in
wp-publication-archive.phpinstead.@jm300 – Thanks for the recommendation. I’ve added it to the ticket list on GitHub so I won’t forget about it in the future.
Forum: Fixing WordPress
In reply to: Search function awry@walkinman – Actually, nothing’s wrong.
When a web browser requests your site (http://www.skolaiimages.com/), your webserver tries to deliver a default page back to the browser. The problem you’re facing is that you have two default pages –
index.phpandindex.html.The
.htmlpage is your old school static home page. The.phppage is the core initializer for WordPress.In other words, when you remove or rename
index.html, your webserver directs all traffic to http://www.skolaiimages.com/ into WordPress and lets WP take care of it. When you restore yourindex.htmlpage, the webserver ignores WordPress entirely and just returns the static file.Your search function
Your search form is attempting to post to WordPress – Specifically, the
action="<?php bloginfo('home'); ?>line is trying to send the search request to http://www.skolaiimages.com/. But when theindex.htmlfile is present in the root of your system, WordPress never sees the request.That is why the search doesn’t seem to be working.
Fixing the problem
The second issue you’re facing is a slight misunderstanding of what WordPress means by a “static front page.”
WordPress can deliver traffic to the root of your site – traffic to http://www.skolaiimages.com/ – to a page rendered by WordPress. You cannot use a static
.htmlpage for this. All traffic to the root of your site must go through WordPress to work correctly.So I recommend setting up a Page in WordPress (just like you would any other post or page) and calling it something along the lines of “Home.” Then follow the steps outlined in the “Creating a Static Front Page” article you’ve already seen to set it as the homepage for your site. Then remove
index.htmlfrom the root of your site.Also, I just updated the official repository to version 2.3.3. This includes the author filter and another quick patch as well.
There isn’t a search function at the moment.
And the 2 document limit was a typo … updating to version 2.3.3 right now to fix it.
I’ve released a quick update that adds an author filter to the plugin. Just write your shortcode as
[wp-publication-archive author="billy" /]where “billy” in this case is the slug of the author.It’s a quick patch, so you can’t use the author name … just the slug.
I’ll clean this up substantially in the future version for which this feature was planned … but hopefully this will allow you to use the filter immediately.
I’m having issues with SVN at the moment, you this update isn’t available from the WP.org repository yet, but will be as soon as I get a solid Internet connection. For now, you can download version 2.3.2.1 from GitHub and install it manually:
I’ve released a quick update that adds an author filter to the plugin. Just write your shortcode as
[wp-publication-archive author="billy" /]where “billy” in this case is the slug of the author.It’s a quick patch, so you can’t use the author name … just the slug.
I’ll clean this up substantially in the future version for which this feature was planned … but hopefully this will allow you to use the filter immediately.
I’m having issues with SVN at the moment, you this update isn’t available from the WP.org repository yet, but will be as soon as I get a solid Internet connection. For now, you can download version 2.3.2.1 from GitHub and install it manually: