pg
Forum Replies Created
-
Forum: Plugins
In reply to: Add a drop down menu to the wordpress admin areaI added the following code in my admin-header.php:
<?php do_action('in_admin_header'); $locationlinks = array(); // Generate user profile and info links. $locationlinks[5] = 'Change Location'; $locationlinks[8] = '<a href="https://google.ca">google1</a>'; $locationlinks[15] = '<a href="https://google.ca">google2</a>'; $locationlinks = apply_filters( 'admin_user_info_links', $locationlinks, $current_user ); ksort( $locationlinks ); // Trim whitespace and pipes from links, then convert to list items. $locationlinks = array_map( 'trim', $locationlinks, array_fill( 0, count( $locationlinks ), " |\n\t" ) ); $locationlinks_howdy = array_shift( $locationlinks ); $locationlinks_no_js = implode( ' | ', $locationlinks ); $locationlinks_js = '<li>' . implode( '</li><li>', $locationlinks ) . '</li>'; ?> <div id="wphead-info"> <div id="user_info"> <p class="hide-if-js"><?php echo "$locationlinks_howdy | $locationlinks_no_js"; ?></p> <div class="hide-if-no-js"> <p><?php echo $locationlinks_howdy; ?></p> <div id="user_info_arrow"></div> <div id="user_info_links_wrap"><div id="user_info_links"> <ul><?php echo $locationlinks_js; ?></ul> </div></div> </div> </div> </div>
Which gives me a title, but I can’t click to expand it like the user one.
Forum: Fixing WordPress
In reply to: Remove selected parent pagesYes, that is what I want to do. Where is that code located?
Forum: Fixing WordPress
In reply to: Remove selected parent pagesI know it lists all pages, and I don’t want to delete/unpublish my existing pages. I just want to find the code that generates that list of “all pages” so that I can add a filter to it
Forum: Fixing WordPress
In reply to: Paragraph top/bottom margin in the editorPerfect, thanks. Created my own editor-style.css
Forum: Fixing WordPress
In reply to: Problem Moving WordPress InstallEdit: I followed the instructions exactly this time and I have the same problem. If I change my permalink settings to “default”, then all of my links work fine. My problem is when I change it to one that uses the name
Forum: Fixing WordPress
In reply to: Search Terms Won't HighlightI figured it out, I had something in my style.css that was causing issues.
Forum: Plugins
In reply to: Problems with highlight search terms pluginanyone?
Forum: Plugins
In reply to: Problems with highlight search terms pluginanyone?
Forum: Fixing WordPress
In reply to: How do I install my custom theme?great, thanks.
Forum: Fixing WordPress
In reply to: All pages give a 404 after migrationYes, I hit save on the permalinks settings.
Forum: Fixing WordPress
In reply to: All pages give a 404 after migrationI deleted my .htaccess file and then hit save again and it was re-created.
I still get the same 404 errors though
Forum: Fixing WordPress
In reply to: All pages give a 404 after migrationMy peralinks are set to:
https://yyy/wordpress/2011/07/04/sample-post/which is what I want
Forum: Fixing WordPress
In reply to: Automatically set link class for imagesSorry for the triple post, but it won’t let me edit it anymore and I just noticed that the html screwed up.
instead of generating this code:
<a href="xxx.png"><img class="alignnone" title="xxx" src="xxx.png" alt="" width="571" height="363" closing stuff here
it generates this (automatically):
<a class="img" href="xxx.png"><img class="alignnone" title="xxx" src="xxx.png" alt="" width="571" height="363" closing stuff here
Forum: Fixing WordPress
In reply to: Automatically set link class for imagesBy this I mean instead of generating this code:
<img class=”alignnone” title=”xxx” src=”xxx.png” alt=”” width=”571″ height=”363″ />
it generates this (automatically):
<img class=”alignnone” title=”xxx” src=”xxx.png” alt=”” width=”571″ height=”363″ />
Forum: Fixing WordPress
In reply to: Last modified byThanks, that gave me a search term which turned out this solution:
https://www.wprecipes.com/how-to-display-the-latest-author-who-modified-a-post