ADBL
Forum Replies Created
-
Would this work as it seems:
<?php if(!$post->post_parent){ // will display the subpages of this top level page $children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0"); }else{ // diplays only the subpages of parent level //$children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0"); if($post->ancestors) { // now you can get the the top ID of this page // wp is putting the ids DESC, thats why the top level ID is the last one $ancestors = end($post->ancestors); $children = wp_list_pages("title_li=&child_of=".$ancestors."&echo=0"); // you will always get the whole subpages list } } if ($children) { ?> <ul> <?php echo $children; ?> </ul> <?php } ?>Forum: Fixing WordPress
In reply to: Convert out accented characters from the_titleThanks for your answer!
How would I apply it to the_title in :
More about <?php the_title(); ?>: <a href="http://www.google.com/images?q=%22<?php the_title(); ?>%22 films" target="_blank">Google Images</a>And how would I do strip accents from the second instance (within the url) and leave them in the first one “More about <?php the_title(); ?>”.
TIA.
Forum: Fixing WordPress
In reply to: Custom string generated based on page titleYes, I found out about this as you were typing it seems.
Now I’m using this kind of code :
<a href="http://www.variety.com/search/siteall?q=<?php the_title(); ?>&x=0&y=0&s=date" target="_blank">Variety</a>..and will try to implement your wya of adding “+” signs.
The only problem I’m left with is that on some site (e.g. Variety), accented characters are breaking the search, e.g.
http://www.variety.com/search/siteall?q=amélie&x=0&y=0&s=date
vs.
http://www.variety.com/search/siteall?q=amelie&x=0&y=0&s=dateSo I need to find a way to convert accented to plain characters from the_title…
Off looking this up in the forums, maybe I’ll post a new thred if needed.
Many thanks anyway.
Forum: Plugins
In reply to: [Plugin: NextGEN Gallery] Gallery(view) side by side with fixed image?I finally found a solution :
In nggallery.css remove “clear:both” in .ngg-galleryoverview class
Then within the post, nest the gallery tag within a div in which you place an img with a float:right attribute. That seems to work.Forum: Plugins
In reply to: [Plugin: NextGEN Gallery] How NOT to display number of photos?Seconded ; is there a better way than editing it out in album-compact.php ? An admin option ?
Forum: Plugins
In reply to: [Plugin: NextGEN Gallery] Gallery(view) side by side with fixed image?What I did for now is edit .ngg-albumoverview to 75%, then inserted the gallery tag within a div with a top right background image. That’s just a workaround for now as the mobile version(WPTouch) is broken then…
Any idea as to putting an image inline with a gallery thumbnails? In my case it’s a vertical image which height is three thumnail rows.
TIA.
Forum: Plugins
In reply to: [Plugin: NextGEN Gallery] Gallery(view) side by side with fixed image?I also tried inserting a NGG single pic + float=”right” but it still comes underneath the gallery (vs. inline).
Forum: Plugins
In reply to: [Plugin: NextGEN Gallery] URL to UploadSeconded. Is there a workaround for this?
Forum: Fixing WordPress
In reply to: How-to: A simple Client PortalThis looks great, exactly what I needed it seems.
Has anyone tried or done interfacing this with some photo/video gallery plugin or theme, so each client would have their own (private) photo+video gallery (from self-hosted files)?
==EDIT==
I (believe I) followed the above instructions, and right now, upon login, my test client is redirected to the Client Portal page (parent). Is there a way I could have each client redirected to their own (child) page? Or am I missing something?
TIA.
Forum: Themes and Templates
In reply to: No CSS in Graph Paper Press themesFWIW : I deleted the themes, then reinstalled using automatic upload/install in wp and it worked.