Buy AutoTrafficRSS script now for $27 only!
We will send the script to your PayPal email within few hours,Please add FullContentRSS@gmail.com to your email contact.Source: Roundup of the top #WordPress security plugins
Buy AutoTrafficRSS script now for $27 only!
We will send the script to your PayPal email within few hours,Please add FullContentRSS@gmail.com to your email contact.When I access my wordpress.com blog site from any mobile device, I'm getting ads showing up. On the landing page of the blog, there are two of them prominently large on the top banner photo.
This is quite annoying, and I'd like to be sure whether this is happening on the wordpress.com end or my end. It seems to be the wordpress end. I did try disabling all of my browser extensions but the popup blocker, to no avail.
This is only happening on mobile devices, and not on desktop computers or laptops.
In case you can't replicate the problem, I have taken a screenshot, and uploaded it to the media library today.
Thank you, in advance, for any insight or help you might have on this.
The blog I need help with is dripdawg.wordpress.com.
Buy AutoTrafficRSS script now for $27 only!
We will send the script to your PayPal email within few hours,Please add FullContentRSS@gmail.com to your email contact.As WordPress pushes over 25% of the web it's easily the most popular CMS to date. And that means more developers are building new websites & webapps on the WP ecosystem.
To cut down on dev time you can build on the work of others by reusing code snippets, most of which come from free code generators online. But there are so many other tools built around WordPress that can also help you scale a new WP website.
Below are my personal favorites and I hope there's something in this list that you haven't seen before.
1. IncludeWP
Developers often create their own WordPress theme frameworks to save time on larger projects. And sometimes devs even release their frameworks on the web for others to use.
IncludeWP curates all these free WP frameworks in one place so you have easy access to the best templates for plugin and theme development.
Everything on this site is totally free and open source each with a GitHub page. You can sort the list by most stars or forks on GitHub, or sort alphabetically if you're looking for something specific.
But if you just wanna browse through WP frameworks this site is the best to see what's out there.
2. WP Hasty
I recently stumbled onto WP Hasty and have to say it's one of the easiest code generators to use.
It's designed solely for WordPress and offers different generators for different snippets. Currently it has 8 different code generators for things like shortcodes, custom post types, taxonomies and even WP_Query() loops.
When you click on any generator you're taken to a new page with a GUI for editing the options. You can input whatever features you want and the code generator automagically creates the snippet for you.
WP Hasty is one of the most comprehensive generators you'll find and it lets you customize every possible option with an easy-to-use interface.
3. Addendio
Testing a WordPress plugin isn't always easy. You'll need to either run it on a live website, or setup a local demo site and test it there.
But with Addendio you can test free WordPress plugins right from your browser. This webapp lets you search through 60,000 plugins all hosted in the WordPress plugins directory.
From there you can run a free sandbox for testing the plugin right on the Addendio website. This gives you access to a temporary WordPress install without any setup work.
Just note this does require an email address to launch the demo but it's one of the fastest ways to play with any plugin in just a few clicks.
4. What WP Theme Is That?
Trying to figure out which theme your favorite blog is using? Check out What WP Theme Is That designed for this exact purpose.
It actually pulls extra data on plugins too so you can spy on both themes and plugins.
Many sites run their own custom themes and in this case you'll get a message with the theme's folder name stating it's not using any recognizable free or premium theme. Otherwise you'll see a full theme preview thumbnail along with a link on where to get it.
Same goes for plugins so if you're trying to break down a WP blog's setup this tool is quite handy.
5. VersionPress
If you develop a lot of projects then version control is an invaluable tool. Most developers use Git but the concept of version control is useful regardless of software choice.
The free VersionPress plugin is a great example. It's designed specifically for WordPress websites and while it runs on Git, it still operates as a separate platform in WordPress.
You can manage all changes to your WordPress website and commit these changes to individual "snapshots" for archiving. It makes development so much easier because you can quickly roll back to earlier versions of your site without needing to back up everything.
Getting this plugin setup & working properly may take some time if you're new to version control. But it's one of the best tools for managing a complex WordPress project and fixing simple coding errors.
6. GenerateWP
Here's one other code generator that I'm quite fond of alongside WP Hasty.
The GenerateWP site has been around for years and they're constantly adding new features. It does offer a little more than WP Hasty so you'll find generators for admin functions, custom query functions, and even core edits like registering hooks or editing your wp-config.php file.
There's so much you can do with this site and it offers a nice mixture of code generators along with free code snippets.
Unfortunately some of the generators are premium-only which gives this a big disadvantage to WP Hasty. But you can still use a total of ~25 free generators without paying a penny or even creating an account.
Worth bookmarking if you'll use it but be on the lookout for other generators too.
7. Admin Account Generator
This is a real simple tool that many devs may not use often, but when it's needed it certainly helps.
Exygy's Admin Account Generator automates the SQL code necessary for overwriting the main admin account. There is no simple way to do this from WordPress and you can't delete the main admin without running SQL code, so the easiest thing to do is overwrite those settings.
With this tool you just input the username/password info you want to use along with your database name and whatever new admin email/display name you want.
It'll automate the final query so you can just copy/paste and run it over your database for a brand new admin account.
8. You Might Not Need That WP Plugin
One of the best things about WordPress is the massive plugin library with so many cool add-ons at the click of a button.
Yet if you run too many plugins it can slow down your admin panel or even your website. That's why I'm a big fan of this free site that lists all the features you can add without using a plugin.
Things like custom post types and related posts all have their own plugins and many non-dev users prefer those options. But this site offers code snippets that you can copy/paste into your functions.php file to get the same effect.
If you're trying to slim down your plugin use, this site is a goldmine of resources.
Buy AutoTrafficRSS script now for $27 only!
We will send the script to your PayPal email within few hours,Please add FullContentRSS@gmail.com to your email contact.Being able to edit the WordPress Loop gives you lots of control over the design and content of your WordPress site.
I often create custom loops, sometimes by editing the standard loop and sometimes using WP_Query to create completely new loops.
But in some cases I want to take things further. I want to display the first post in my loop differently from subsequent posts. This could be by adding custom styling or it could be because I want to display different content.
For example I might want to display the post content for the first post but just the excerpt for subsequent posts. Or I might want to use a different sized featured image, or apply difference CSS classes to the first post.
Doing this can highlight your most recent post, drawing attention to it and encouraging visitors to read it or click on it. It can also enhance the layout of your site, breaking things up and creating a more varied design.
In this post, I'm going to show you how to use the WP_Query class to do it. I'll show you how to set up a custom query for all your posts using WP_Query and then I'll show you how to create a second query which just applies to the first post.
In the worked example I'll show you how to do this on a custom page template, using WP_Query to run two separate queries. And then I'll show you how to apply this technique to the standard loop, editing a standard archive template and using pre_get_posts to alter the standard loop.
Note: If you're not familiar with WP_Query and its awesome power, then check out our In-Depth Guide to Conquering WP_Query.
What You'll NeedTo follow along with this post, you'll need a few things:
My personal site has a custom page template in it for my 'books' page. This page displays the content I've added to the 'books' page and then runs a loop to output all of my books. This is done using a custom post type.
Your loop might be very different – you could be using normal posts, it could be in an archive template file, a template file for a custom post type or anything you want not to work on. So you don't have to be working with a custom page template to use this technique. If you just focus on the loop itself, that shows you how the technique works and you can apply it to your own site.
Here's my page with one loop outputting all of my books in a 2x 2 grid:
I've used some object oriented CSS which is in my theme to create a 2×2 grid displaying each of my books. Within the loop I have the title, the excerpt and the featured image.
Here's the loop that's running for all my posts:
You'll see that my loop has just one argument: the post type. So it's displaying all posts of that post type, most recent first.
But what we want to do is display the first post differently. Let's do that.
Creating a Separate Loop for the First PostTo display the first post differently, we need to create a separate loop that just runs that post.
To do that, you need two arguments: one for the post type and one for the number of posts, which is the posts_per_page argument. Set that to 1.
Start by duplicating your original loop so you have two loops in your template file, both using WP_Query. Now edit the arguments for the first one so they read as follows:
This will fetch just the most recent post. But there's not much point in doing this unless you want to change something in that first loop.
I want to output the excerpt and the content. I also want to add some styling for layout, so that the featured image and excerpt appear above the content.
Here's the new version of the part of the loop that outputs the post itself, just for the first post:
You'll see that there's extra code in there for the content, and that I've added some extra enclosing div elements to style the layout – again this uses styling that's already present in my theme.
Here's the first post in my page:
It looks good. You may have spotted that I've also removed the link to explore the book (as the entire content is here on the main books page) and instead there's a button to buy the book, which is taken form the content of the post.
Amending the Loop for Subsequent PostsBut there's a problem.
Here's a screenshot showing you the first post and the posts after it:
The first post is currently being duplicated. It's being fetched by the loop that was there originally, and it's also being fetched by the new loop for just the first post.
This is fixed by adding an extra argument to the second loop – the offset argument. This tells WordPress to skip a set number of posts before fetching posts to output. As we've displayed one post in tour first loop, we need to offset by one.
Note: If you're ever using this technique, the posts_per_page argument for your first loop and the offset argument for your second loop should be the same, They might not always be 1.
In your second loop, amend the arguments so they look like this:
Now when you refresh your page you'll find that the first post isn't duplicated:
That's better! Now you're done. You've created a custom page with two loops, one of which displays extra content for the most recent post.
Applying This Technique to the Standard LoopBut what if your page is running the standard loop? If this is the case, you can edit the template file that's running that page, adding just one extra query using WP_Query. You don't have to write two new queries.
There are two steps to this technique:
First, open the template file that you want to edit. It will be any archive template file. In my case if I was using a standard template file to output my custom post type, the file would be called archive-rmcc_book.php.
Before the main loop, add an extra loop using WP_Query. You'll do this in a similar way to the above method, copying and editing the contents of the main loop, but putting it inside a query that's powered by WP_Query. Don't forget that you still need the post_type argument despite the fact that you're in the archive template for this post type.
Save your template file and your first post will show up twice, just like it did in my worked example.
Skipping the First Post in the Main QueryYou can't directly edit the arguments for the main query in your archive file. Instead you need to use the pre_get_posts hook to do this. Open your functions.php file (or create one if you don't have one already) and add something like this:
You'll see here that there are three conditional tags being used: one to check we're not in the admin screens, another to check that it's the main query running and a third to check if we're on an archive page for this post type. The conditional tag you use for your post type (or category, or whatever) can be found in the WordPress Codex.
Save your functions file and you'll find that your first post is output using your custom loop and then subsequent posts are output via the standard loop.
Note: This method can sometimes break pagination. If this happens to you, follow these guidelines.
WP_Query Lets You Highlight Your Most Recent PostBy using this technique, you can use the WP_Query class to display extra content for your most recent post, or to style it differently. As you'll see from my example, I've used it to make my most recent book stand out from the others.
You can apply this to a loop you've created using the WP_Query class to to the standard loop in your theme template file – whichever you're using. Once you've done it, your most recent post will stand out and attract your readers' attention.
Buy AutoTrafficRSS script now for $27 only!
We will send the script to your PayPal email within few hours,Please add FullContentRSS@gmail.com to your email contact.