geekhero
Forum Replies Created
-
Ah, no worries, I’ll just code it to calculate with php as I don’t really need it to store in the DB. Thanks for the response!
Forum: Plugins
In reply to: [Display Posts - Easy lists, grids, navigation, and more] Display PostsAdd this code into your them’s funtions.php file.
if ( function_exists( 'add_theme_support' ) ) { add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 150, 150 ); // default Post Thumbnail dimensions } if ( function_exists( 'add_image_size' ) ) { add_image_size( 'category-thumb', 300, 9999 ); //300 pixels wide (and unlimited height) add_image_size( 'homepage-thumb', 220, 180, true ); //(cropped) }
Then just change “category-thumb” or “homepage-thumb” to whatever you want, or leave them as is and change their dimensions. Then you replace “thumbnail” with what you named the new thumbnail size. So using the code above, your shortcode would look like:
[display-posts tag=”advanced” image_size=”category-thumb”]
instead of the default:
[display-posts tag=”advanced” image_size=”thumbnail”]
I cant remember, but you may need to set a featured image for this to work as well.
Forum: Plugins
In reply to: [Display Posts - Easy lists, grids, navigation, and more] Display PostsI think I understand. My first thought would be that there must be a way to do display the items on the /products page in the same way they are being displayed on the browse/design page. I assume your theme is creating those pages based on categories? Can you not make a “projects” category and pull that list in the same way? If not, you can sort of use this plugin shortcode something like this:
[display-posts tag=”advanced” posts_per_page=”20″ include_excerpt=”true” display-posts image_size=”thumbnail”]
There are a bunch of configurable options, this is just an example. For all the arguments, go here;
https://github.com/billerickson/display-posts-shortcode/wiki
Unfortunately, I don’t know how offhand how you would go about getting that yellow category box in the top left corner of the thumbnail to show up other than some php functions. Also, I can’t guarantee that it would be responsive in the way the other post excerpts are either. And you will need to use a bunch of css to style the output from this plugin.
Forum: Plugins
In reply to: [jPages pagination for WordPress] Paginate simple listAh figured it out, thanks!
Forum: Plugins
In reply to: [Display Posts - Easy lists, grids, navigation, and more] Display PostsI am unsure what you are asking. Do you want to display posts on your frontpage, or are you trying to treat your frontpage like a post, and wish to display it elsewhere? It looks like you are already displaying posts on your frontpage in the manor that this plugin functions. If you are trying to display your frontpage elsewhere for some reason, perhaps an iframe would be the way to go. Also, from the several articles I looked at, they appeared to be copied directly from other sources. As far as I am aware, that is kind of frowned upon and legally questionable at best.
Here is a link to the doucmentation. The link can also be found on the plugin’s wordpress hompage.
https://github.com/billerickson/display-posts-shortcode/wiki
This might set you in the right direction…
I have it running on 3.8.1 and it seems to be working fine. From what I can tell, the coding doesn’t seem too dependent on specific versions to work properly. I would recommend deactivating all you plugins, or putting an underscore in front of the plugins folder temporarily. That will deactivate all your plugins, and if the issue persists beyond that, then it is most likely not a plugin issue. If that solves the issue, then remove the underscore and manually deactivate all your plugins from the plugin menu. That way you can turn them on one by one, checking each time to see if the problem develops again. Just my two cents…