omniafausta
Forum Replies Created
-
Forum: Themes and Templates
In reply to: showing childpages of another than the current pageStill not completely there, but that helped!
Turns out I needed the title with spaces, and not the slug!still have some problems:
- I want it to show just the children and not their children (do you call those grandchildren???) because they are already listed under their respective parents
- I lost my Order by menu, and haven’t a clue where to incorperate this in the new setup
So my search continues, but I am a bit farther now!
Anyone have any idea how to resolve my 2 new problems??Forum: Themes and Templates
In reply to: showing childpages of another than the current pagehmmm cannot get this to work for me….
If I combine stuff from the example and what I already had, and I change the title at the get_page_by_title to the correct parent, I do get some result.
But nog just the children of that page, but from all pages…
I must be doing something wrong here I guess.
Can anyone help me?
This is what I now have:<div id="childpages"> <?php // Set up the objects needed $my_wp_query = new WP_Query(); $all_wp_pages = $my_wp_query->query(array('post_type' => 'page')); // Get the page as an Object $portfolio = get_page_by_title('wat-biedt-het-paddenstoelenhuis'); // Filter through all pages and find Portfolio's children $portfolio_children = get_page_children($portfolio->ID, $all_wp_pages); ?> <?php if ( $portfolio_children ) : foreach ( $portfolio_children as $pageChild ) : setup_postdata( $pageChild ); ?> <div class="child-thumb"> <div class="thumb"> <a href="<?php echo get_permalink($pageChild->ID); ?>" rel="bookmark"><?php echo get_the_post_thumbnail($pageChild->ID, 'thumbnail'); ?></a></div> <div class="child-links"> <a href="<?php echo get_permalink($pageChild->ID); ?>" rel="bookmark"><h2><?php echo $pageChild->post_title; ?></h2></a> <ul> <?php $howmany = 4; $pages = wp_list_pages("echo=0&title_li=&parent=$pageChild->ID"); $pages_arr = explode("\n", $pages); for($i=0;$i<$howmany;$i++){ echo $pages_arr[$i]; } ?> </ul> </div> </div> <?php endforeach; endif; ?> </div>Somehow I have the feeling this line doesn’t work:
$portfolio = get_page_by_title('wat-biedt-het-paddenstoelenhuis');or it has something to do with:
$portfolio_children = get_page_children($portfolio->ID, $all_wp_pages);because of the all_wp_pages maybe? But I haven’t got a clue what can be wrong and how to change it.
Please any help is appreciated!!!
Update:
If I use another page (lower in the hierarchy, Like Koken) it DOES work…
Maybe it has something to do with the long title?
I’ll check!Forum: Themes and Templates
In reply to: showing childpages of another than the current pageI think I might have found something on this page…
http://codex.ww.wp.xz.cn/Function_Reference/get_page_childrenbut I will have to see if this is what I am looking for and if I can translate it into what I need exactly.
Forum: Themes and Templates
In reply to: Mantra theme – cannot change grey text.some of the css is actually not in your css file, but added to your document, probably by your functions.php.(open the page in a browser and check the sourcecode)
You could open that up and check/change any css in there.
Or overrule the css in your css file by adding !important
If the css says for example:
.column-image {border: 3px solid #eee;}
and you want to overrule that, you could for example say:
.column-image {border: 1px solid #000 !important;}hope this helps!
Forum: Themes and Templates
In reply to: showing childpages of another than the current pagemight be that on the homepage I should not work with childpages but some other way? Maybe getting the entire site map / link tree and then hiding the rest?
Not sure how that would work if in a later stage another page is added though…
Please help, anyone?Forum: Fixing WordPress
In reply to: having a weird problem with the_categoryand I found a function that does what i needed the plugin to do, without the trouble the plugin gave me!!
function my_nav_notitle( $nav ){ return $nav = preg_replace('/ title=\"(.*?)\"/', '', $nav ); } add_filter( 'wp_nav_menu', 'my_nav_notitle' ); add_filter( 'wp_page_menu', 'my_nav_notitle' ); add_filter( 'wp_list_categories', 'my_nav_notitle' ); add_filter( 'the_category', 'my_nav_notitle' ); ?>Forum: Fixing WordPress
In reply to: having a weird problem with the_categoryfinally found the culprit! It was a plugin that made it happen.
‘Remove Title Attributes’
When i deactivated it, the problem was gone.Forum: Fixing WordPress
In reply to: having a weird problem with the_categoryupdate:
<?php echo get_the_category_list(); ?>gives me both categories, but in an ul
As soon as I add the seperator, it turns out as before (showing just the one category that links to the other)could it maybe be something in the functions of the theme I started with?
Forum: Fixing WordPress
In reply to: Edit page link gone after giving WordPress it's own directorythat makes sense!
Forum: Fixing WordPress
In reply to: Edit page link gone after giving WordPress it's own directoryand another update: it now works for me as well!
Not a clue what happened, but not complainingForum: Fixing WordPress
In reply to: Edit page link gone after giving WordPress it's own directoryUpdate
ok, I just noticed something weird:
I have 2 admin users for this site, and if I log on with the one I made for me, I have this problem, but if I log on with the one I made for the client, the edit link is still there!The one for the client is the original one…
anyway good news bacause it still works ok for the client, and if need be I can log on with that username and password as well.
Still weird though!
Forum: Fixing WordPress
In reply to: gallery thumbnails placementhmmm been looking into it more myself, and looks like the white-space: nowrap will not work on this…
Any other ideas?
I was thinking that it must be possible with php or javascript (which i both cannot write…) to make some calculations based on :
– the amount of rows of thumbs on the page
– times the width of the thumbs (which unfortunately can also vary…) – taking in account the right-margin of the thumbs
– plus the width of the text divand then setting that as the width of the content div…
but I wouldn’t know where to begin writing something that does that… any advise?
Or a better way to approach this?THANKS!
Forum: Fixing WordPress
In reply to: Search Engines don't find me anymoreyou didn’t by any chance change the privacy-setting to blocking search-engines?
Forum: Fixing WordPress
In reply to: warning media librarythanks for your replies! I tried the 2nd post, and that worked! That fixed it for me.
Probably the hotfix plugin would have fixed it as well, since their page says:
WordPress 3.1.3
Fix a bug that caused post_status to malfunction if passed an array and even with my lack of php-knowledge that seems to be about the piece of php I have changed.Is it a good idea to install the hotfix plugin anyway?