ddellostritto
Forum Replies Created
-
Thanks Chris. Worked wonderfully.
Forum: Fixing WordPress
In reply to: show children pages on parent hover AND ON parent or child page@stacybird Thanks for the help. Saved me from some complicated function…
Forum: Fixing WordPress
In reply to: problem generating pagesHi ChristiNi,
Thanks for the reply. Where would the .htaccess file be found: in my child theme’s directory or the root folder? I’m using Coda and have enabled showing invisible files but the .htaccess file isn’t there….so I’m not sure what to modify.
I tried changing my permalink structure in wordpress from what I normally set it (“/%postname%”) to the default and then back again but still no luck.
Again, thanks for any help.
Forum: Fixing WordPress
In reply to: How to check page STATUS?Figured it out myself; but understanding the “published” status part was key. Thanks again!!!!!
In case anyone else needs something similar.
<?php $dd_post_id = 1; $dd_check_post_id = get_page( $dd_post_id ); $dd_post_url = get_permalink( $dd_post_id ); if ($dd_check_post_id->post_status == 'publish') echo '<div><a href="'.$dd_post_url.'">'.$dd_post_title.'</a></div>'; ?>
Forum: Fixing WordPress
In reply to: How to check page STATUS?the code didn’t show, now it should:
<a href="<?php the_post_link ?>">link text</a>
Forum: Fixing WordPress
In reply to: How to check page STATUS?keesiemeijer – wonderful piece of code, thanks! Do you think you might be able to help me? I’d like to only display a text and have it link to the actual content, so I’d need to get the post url, not it’s content and echo that into a link:
Thanks in advance!
Forum: Fixing WordPress
In reply to: Menu with imagesI had this same problem, a client wanted image-only buttons in the nav.
The solution I found was based on this article. So basically:
1. Add a custom menu.
2. Add a custom link.
3. In the Label, put the url of the image that will represent the ‘button’ for that page.
4. In the URL, add the url of the page where the user will be taken on click.A little bit longer, but for me it was what I needed.