163 reputation
313
bio website heavymark.com
location Greater Boston
age
visits member for 3 years, 7 months
seen Dec 15 at 16:23

Building strong impressions in Greater Boston.


Jan
16
comment Permanently Redirect WordPress Subfolder Blog to Subdomain on Another Server
Got it: So my original one I just need to remove the P like you did in yours but not add the ^blog you had in yours. Going to mark yours as correct tho since the best answer. Thanks! RewriteEngine ON RewriteCond %{REQUEST_URI} ^/blog RewriteRule ^(.*)$ blog.joesexample.com/$1 [R=301,L]
Jan
15
comment Permanently Redirect WordPress Subfolder Blog to Subdomain on Another Server
Doesn't seem to work. I decided to test more simple directs such as redirecting www.joesexample.com to blog.joesexample.com which I was able to get working with: RewriteEngine On Options +FollowSymlinks RewriteCond %{HTTP_HOST} ^(www\.)?joesexample\.com$ [NC] RewriteRule ^ blog.joesexample.com [R,L] and putting that in the root directory. Not sure if there is a way to modify that so it can instead redirect /blog (and any posts in it. Or if there is another change I can try based on your version? htaccess reg expressions are never fun!
Jan
15
comment Permanently Redirect WordPress Subfolder Blog to Subdomain on Another Server
We tried but that change causes forbidden errors. Any thoughts? I'll keep researching in the mean time too.
Jan
15
comment Permanently Redirect WordPress Subfolder Blog to Subdomain on Another Server
Ah that makes sense. Going to try it now and will let you know how it goes.
Nov
26
comment List custom post type but redirects to home page
The publicly_queryable hint worked for me. Thanks!
Nov
22
comment How to add a data attribute to a WordPress menu item
I set a reminder in Fantastical so I don't forget to award the bounty tomorrow.
Nov
22
comment How to add a data attribute to a WordPress menu item
After I swapped in some of my own values that did it! Thank you! Marked it as correct, but says I need to wait 23 more hours before I can award the bounty.
Nov
4
comment How to add a data attribute to a WordPress menu item
Thanks for this! I'm not quite sure I understand how to get the $item ID for my particular menu item however. In your example the 2220 is also the same as your url "dev.rarst.net/?p=2220";. My link I want to add the data-attribute to doesn't go to another wordpress url but rather is href="#ContactForm". Based on your example above I googled more and tried running echo var_export($GLOBALS['post'], TRUE); but when I look near the invidual menu item I don't see any unique ID. Can you clarify? Or in "if ( 2220 == $item['ID'] )" Thanks in advance!
Jul
16
comment Unable to reorder the calendar using the WP Calendar plugin
Correct, in the instructions it says, "orderdir => ASC An array of sort directions (asc or desc). Use the same key as in the array orderby to join the right field." but using them both still does not change the order sadly.
Jul
15
comment Unable to reorder the calendar using the WP Calendar plugin
Thanks Kaiser. Hopefully I can earn another 9 points so I will be able to add a bounty to this question, since I've been trying to figure it out for weeks.
May
24
comment Show All Children of WordPress Menu
@goldeenapples, The original version I posted provides no errors and works however it does not show the sub sub menu items. xLRDs code provided produced a 500 error. Your revised produces the same results as my initial copy where it works but does not show the sub sub items (which this post is for). Or do you solve it and I'm grabbing a wrong revision? Thanks!
May
24
comment Show All Children of WordPress Menu
xLRDxREVENGEx, To note, the 500 error came from your line: if ($max_depth db_fields['id'];
May
24
comment Show All Children of WordPress Menu
xLRDxREVENGEx, I noticed you edited my code above to a version which now produces a 500 error. Can you be sure to post any attempts as an answer so people will have the original working version to go off of, when trying to allow sub items to show?
May
24
comment Display a portion/ branch of the menu tree using wp_nav_menu()
After trying them all, Alp's solution was the only one that worked for me. However one problem with it. It on only show's the first level children, but does not show the third or fourth level children. I've been trying to for days to get it to do so. Anyone know how to modify his solution as such? PS. It won't let me add comments so need to do it as an answer.
May
24
comment What is the difference between WP: template_directory vs TEMPLATEPATH
<a href="<?php echo TEMPLATEPATH; ?>/about.txt">About</a> would be <a href="<?php bloginfo('template_directory'); ?>/about.txt">About</a>
May
20
comment Show specific menu item from wp_nav_menu based on id
@Ian, that is a good point if that's how presumably works.
May
18
comment Show specific menu item from wp_nav_menu based on id
I will try your new css code to see if it will work as a temporary option until I determine a way to do it in the code. Since with CSS way, the page would still need to load all the menu items, increasing load time and resources, and simply hiding it. But do to a time crunch, certainly an option to consider. Thank you.
May
18
comment Show specific menu item from wp_nav_menu based on id
I initially had it setup using pages, which only took a few lines of code from WordPress's site however when on a sub sub page, it showed the sub sub menu, rather than the first sub level and its descendents. Also when the user updates the main menu, it wouldn't reflect in the interior side menu if using the page structure way, which is why I choose the menu way. But thank you.
May
18
comment Show specific menu item from wp_nav_menu based on id
@Ian This does not work. I haven't seen, "current-page-parent" used before. I believe WP generates, "current-menu-item", and "current_page_item". But even using those it does not appear to work and simply hides the entire menu. I have you done it this was successfully on a site before you could reference?
May
18
comment Show specific menu item from wp_nav_menu based on id
So unfortunately, after trying out those options on that link, I have not found a workable solution. The first walker class simply outputs all the menu items, meaning it does not work. The third one in the list appeared to work, but it shows the top menu item, and only goes one depth down, where is I need all depths. Tried the plugin option, but does not work either, just shows all the menu items. The next one answered by Alp, shows the side menu, and no top level which is great, but does show their children. And the last one on the page does not work at all. Suggestions?