bibbli
Forum Replies Created
-
Done! Thank you, looking forward. 🙂
Hi,
Added the footer php and successfully revealed the root end of the path (I’m not including the actual username here):
/home/username/public_html/wp-content/gallery/watermark2.jpgIt didn’t work, sorry to say. 🙁
http://theskepticalscientist.com/wp-content/gallery/watermark2.jpg
/public_html/wp-content/gallery/watermark2.jpg
/wp-content/gallery/watermark2.jpg
gallery/watermark2.jpg
../gallery/watermark2.jpg
../../gallery/watermark2.jpg
watermark2.jpgI also put the image loose in the nextgen-gallery folder and tried:
/public_html/wp-content/plugins/nextgen-gallery/watermark2.jpgI don’t know how to drill down to the “true” document root if that’s what’s required.
First I try the “refresh preview image” button, then try in “set watermark” in Manage Galleries.
Thank you for taking the time to review this problem.
Cais, thank you for the response. That did not work. Do you have another suggestion?
Forum: Fixing WordPress
In reply to: Always a gap at the top of my blog page but not on any otherThis worked using a twentysixteen child theme rather than deleting the native .css file:
@media screen and (min-width: 44.375em) {
body:not(.custom-background-image):before,
body:not(.custom-background-image):after {
background: none!important;
}
#page {
margin-top: 0px;
}
}Forum: Plugins
In reply to: [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery] PHP errorThank you for solving this. In case someone experiences the same problem, an ‘index.html’ file serving as a parked page amongst root wordpress files caused the confliction. Renaming it fixed the problem.
Forum: Plugins
In reply to: [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery] PHP errorJust sent a bug report. Thank you.
-BBForum: Hacks
In reply to: output of post classes using apply_filtersThe join() method worked beautifully! Thanks so much! What a thrill to get that to work. I had it showing classes very quickly…sorry my request wasn’t immediately clear.
$output .= $indent . '<li id="item_'.$page->ID.'" class="'.join( " ", get_post_class( "", $page->ID )).'"><span>'.apply_filters( 'the_title', $page->post_title, $page->ID ).'</span>';Thanks also for the caution re: usage/themes, etc…very relevant, I’ll save for reference. It may indeed become an issue.
Thank you again for your thorough, thoughtful help.
Forum: Hacks
In reply to: output of post classes using apply_filtersI’m hell bent to solve this…I’m terrible at this (b/c I’m a noob) but I’m enjoying it too much.
Really looking fw to learning how I can use the returned value of the first function by placing properly in the plugin script below, plus the proper syntax to output the classes. The first script successfully assigns various classes to posts, so the mission is to output those right after .$page->ID. at the bottom of this one:
class Post_Types_Walker extends Walker { var $db_fields = array ('parent' => 'post_parent', 'id' => 'ID'); function start_lvl(&$output, $depth = 0, $args = array()) { $indent = str_repeat("\t", $depth); $output .= "\n$indent<ul class='children'>\n"; } function end_lvl(&$output, $depth = 0, $args = array()) { $indent = str_repeat("\t", $depth); $output .= "$indent</ul>\n"; } function start_el(&$output, $page, $depth = 0, $args = array(), $id = 0) { if ( $depth ) $indent = str_repeat("\t", $depth); else $indent = ''; extract($args, EXTR_SKIP); $output .= $indent . '<li id="item_'.$page->ID.'"><span>'.apply_filters( 'the_title', $page->post_title, $page->ID ).'</span>'; } function end_el(&$output, $page, $depth = 0, $args = array()) { $output .= "</li>\n"; } }Forum: Hacks
In reply to: output of post classes using apply_filtersThanks…below is the unaltered script excerpt. I would definitely like to return the value of that function because the post classes will vary.
function start_el(&$output, $page, $depth = 0, $args = array(), $id = 0) { if ( $depth ) $indent = str_repeat("\t", $depth); else $indent = ''; extract($args, EXTR_SKIP); $output .= $indent . '<li id="item_'.$page->ID.'"><span>'.apply_filters( 'the_title', $page->post_title, $page->ID ).'</span>'; }Forum: Hacks
In reply to: output of post classes using apply_filtersDo I need a function to hook into the classes the above script makes?
Forum: Hacks
In reply to: output of post classes using apply_filtersHi, thanks so much for your generous response. I think I wasn’t perfectly clear…the first script works fine, only showing that to add context (sorry).
The 2nd script is a portion of a plugin that I’m hoping to resolve to separately output the post classes that the first script is already making.
I should mention that I’m fairly new to this level so appreciate anything I can learn as I go.
Thanks a ton. 🙂
Forum: Plugins
In reply to: [Post Types Order] Problem showing imagesIt was a bad/disagreeable featured image. Sorry for the bother!
Forum: Plugins
In reply to: [Post Types Order] Problem showing imagesHi…thank you for the great plugin.
I experienced a similar problem: not showing a thumbnail in a recent projects widget. I turned off autosort and it displayed properly. I followed your instructions above to make:
<?php $loop = new WP_Query( array( ‘post_type’ => ‘portfolio’, ‘sort’=>’featured’, ‘orderby’ => ‘menu_order’, ‘posts_per_page’ => 10 ) ); $counter = 1;
I still can’t get it to work. I inspected the element and all I can see is that no thumbnail image is being retrieved. Any ideas?
Missing thumbnail is the 6th at upper right corner, thanks
http://www.plaidtractor.com/WP_test/sort/web-designForum: Fixing WordPress
In reply to: WP image quality and workflow (use save for web?)Thanks!
BTW, meant to say “minimize load time”.
I’m really surprised there isn’t more about this somewhere, seeing as image handling and load time is so fundamental to WP.
Really? Nobody can shed any light?