Are image addresses security relevant?

You’ve asked a good question… well, a couple of questions. Considering the example at face value. Larger sites have an image url like this. Why? . <img src=”https://wordpress.stackexchange.com/questions/315533/imgrur.com/9keqqq”/> There are any number of reasons but let’s deal with the most obvious. “Imgur” is an example of a service that hosts “interesting” images and they encourage … Read more

Conditional statement with three condition

You’re missing } before elseif: <?php if (is_page (’20’)){?> print this <?php } elseif (is_page (’50’)){?> then print this <?php } else { ?> print this <?php } ?> Remove the PHP tags and you’ll see why: if ( is_page( ’20’ ) ) { elseif ( is_page( ’50’ ) ) { } else { }

Why should I keep my personal WordPress separate from my “professional” one? [closed]

It really depends on who your target audience is… Keeping them together: Pros: It’s the real you. You won’t need to worry about what goes where. There’s always something (off topic) to blog about. Cons: Narrow-minded readers are exasperated by diversity. Especially if some of the topics you blog about can be controversial. (And narrow-minded … Read more

Looking for a related post plugin which slides-in like the one at inc.com does [closed]

The plugin I think you’re looking for is http://wordpress.org/extend/plugins/upprev-nytimes-style-next-post-jquery-animated-fly-in-button/ “Just like the NYTimes button, upPrev allows WordPress site admins to provide the same functionality for their readers. When a reader scrolls to the bottom of a single post, a button animates in the page’s bottom right corner, allowing the reader to select the next available … Read more

How to defeat “Blog pages show at most __ posts” setting in the loop?

Instead of using the default loop, perhaps try building your own query. Basically, it’ll look something like this: $your_posts = get_posts(‘cat=123&posts_per_page=123’); foreach ($your_post as $post) { do_something-with($post); } You can display all posts by either use the param ‘posts_per_page’=>-1 or nopaging=true. (Not sure why someone voted this down? IMHO said person should comment on how … Read more

Updating WordPress [closed]

First Never modify the database options directly. Instead, to deactivate all of your plugins, FTP to your site and rename the /plugins directory as /plugins-1 or something along those lines. WordPress will automatically deactivate them the next time you try to load the site, then you can change the name back to /plugins. Troubleshooting There … Read more

Serialized Data

your meta value is getting serialized twice, you should pass update_user_meta an array, not a serialized string. and while you’re at it, get the user meta via get_user_meta and you won’t have to think about serialization at all, WordPress handles all that behind the scenes if you stick to the API.