Jeagr 1 Posted February 12, 2012 Report Share Posted February 12, 2012 Hey Everyone, I am trying to replace a simple "5" with "25" in WordPress, and I can't get it to work for the life of me. Basically, I'm trying to change the number of recent posts shown from 5 to 25. Any ideas how to do it? I tried $replace, but I can't seem to get it to work correctly...it just appends 25 to 5, so I end up with 525. Any help would be appreciated. http://screencast.com/t/9TwyTxdqFs Quote Link to post Share on other sites
Lombi 34 Posted February 12, 2012 Report Share Posted February 12, 2012 it would be more helpful to show code instead of the element (...or both!) - but I'm pretty sure you're dragging in the element, which initializes type text instead of change attribute. Drag in the change attribute command, select the element and pick "value" Should work wonderfully. Quote Link to post Share on other sites
Lombi 34 Posted February 12, 2012 Report Share Posted February 12, 2012 ...and here's some code: type text(<name="wp_screen_options[value]">, "this doesnt work", "Standard") wait(2) change attribute(<name="wp_screen_options[value]">, "value", "This works") wait(2) type text(<name="wp_screen_options[value]">, "\{BACKSPACE\}\{BACKSPACE\}\{BACKSPACE\}\{BACKSPACE\}\{BACKSPACE\}\{BACKSPACE\}\{BACKSPACE\}\{BACKSPACE\}\{BACKSPACE\}...this also works, but it\'s far better to use change attribute", "Standard") Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.