Posts Tagged with post

Displaying 1-10 of 12 results.
Resolved: WordPress How to remove cells(columns) from admin posts and pages table
posted by admin on April 21, 2017
altIn my wordpress website I have a few plugins, for example Yuzo Views, All in One Seo, etc, and they insert their columns to wordpress posts and pages editing tables, and I cant see general information in admin, like title, categories, tags etc. All fields very narrow, and I can't read information normally.Read more
Wiki: How to make an AJAX call without jQuery with GET and POST?wiki
posted by admin on March 27, 2017
Using the following snippet you can do similar things pretty easily, like this:

ajax.get('/test.php', {foo: 'bar'}, function() {});

Here is the snippet:

var ajax = {};
ajax.x = function () {
if (typeof XMLHttpRequest !== 'undefined') {
return new XMLHttpRequest();
var versions = [

var xhr;
for (var i = 0; i < versions.length; i++) {
try {
xhr = new ActiveXObject(versions[i]);
} catch (e) {
return xhr;

ajax.send = function (url, callback, method, data, async) {
if (async === undefined) {
async = true;
var x = ajax.x();, url, async);
x.onreadystatechange = function () {
if (x.readyState == 4) {
if (method == 'POST') {
x.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');

ajax.get = function (url, data, callback, async) {
var query = [];
for (var key in data) {
query.push(encodeURIComponent(key) + '=' + encodeURIComponent(data[key]));
ajax.send(url + (query.length ? '?' + query.join('&') : ''), callback, 'GET', null, async)
}; = function (url, data, callback, async) {
var query = [];
for (var key in data) {
query.push(encodeURIComponent(key) + '=' + encodeURIComponent(data[key]));
ajax.send(url, callback, 'POST', query.join('&'), async)
Read more
Resolved: Submit form on change of dropdown list
posted by admin on April 26, 2016
I have SELECT dropdown list

<form method="GET" >
<select id="id_period" name="period">
<option value="day">day</option>
<option value="week">week</option>
<option value="month">month</option>
<option value="all" selected="selected">all time</option>

I want to submit form on changeRead more
Resolved: How do I get a YouTube video thumbnail from URL or embed iframe
posted by admin on April 9, 2016
If I have a YouTube video URL, is there any way to use PHP and cURL to get the associated thumbnail from the YouTube API?Read more
Wiki: Post content classification for blogs, vlogs, apps, games
posted by admin on April 7, 2016
altUsing our rating system, you can communicate familiar and locally relevant content ratings to your users and help improve app engagement by targeting the right audience for your content.

How ratings are used
  • Inform consumers about the age appropriateness of your app.
  • Block or filter your content in certain territories or to specific users where legally required.
  • Evaluate your app’s eligibility for special developer programs.

Rating authorities & descriptions

Content is generally suitable for all ages. May contain minimal cartoon, fantasy or mild violence and/or infrequent use of mild language.

Content is generally suitable for ages 10 and up. May contain more cartoon, fantasy or mild violence, mild language and/or minimal suggestive themes.

Content is generally suitable for ages 13 and up. May contain violence, suggestive themes, crude humor, minimal blood, simulated gambling and/or infrequent use of strong language.

Content is generally suitable for ages 17 and up. May contain intense violence, blood and gore, sexual content and/or strong language.

Content suitable only for adults ages 18 and up. May include prolonged scenes of intense violence, graphic sexual content and/or gambling with real currency.Read more
Wiki: Wordpress supported post formatswiki
posted by admin on April 5, 2016
The following Post Formats are available for users to choose from, if the theme enables support for them.

Note that while the actual post content entry won't change, the theme can use this user choice to display the post differently based on the format chosen. For example, a theme could leave off the display of the title for a "Status" post. How things are displayed is entirely up to the theme, but here are some general guidelines.

aside - Typically styled without a title. Similar to a Facebook note update.
gallery - A gallery of images. Post will likely contain a gallery shortcode and will have image attachments.
link - A link to another site. Themes may wish to use the first <a href=””> tag in the post content as the external link for that post. An alternative approach could be if the post consists only of a URL, then that will be the URL and the title (post_title) will be the name attached to the anchor for it.
image - A single image. The first <img /> tag in the post could be considered the image. Alternatively, if the post consists only of a URL, that will be the image URL and the title of the post (post_title) will be the title attribute for the image.
quote - A quotation. Probably will contain a blockquote holding the quote content. Alternatively, the quote may be just the content, with the source/author being the title.
status - A short status update, similar to a Twitter status update.
video - A single video or video playlist. The first <video /> tag or object/embed in the post content could be considered the video. Alternatively, if the post consists only of a URL, that will be the video URL. May also contain the video as an attachment to the post, if video support is enabled on the blog (like via a plugin).
audio - An audio file or playlist. Could be used for Podcasting.
chat - A chat transcript, like so:
Read more
Resolved: Post views counts in Mysql. Better way to do it?
posted by admin on March 23, 2016
I have blog. And I want to construct my views count table. Please help me make it better.

id, name, ..., views, ...

I don't want structure like this, I want individual tableRead more
Resolved: Wordpress post_class add class
posted by admin on March 22, 2016
How to add class in post_class() function.


<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

HTML output

<div id="post-4564" class="post post-4564 category-48 category-dancing logged-in">
Read more
Resolved: Custom category.php for Wordpress custom post types?
posted by admin on March 21, 2016
How do I create a category.php template (e.g. category-testimonial.php) that ONLY displays posts from a custom post type?Read more
Resolved: Wordpress query_posts by category slug
posted by admin on March 21, 2016
I want to customize query_posts by get posts by category slugRead more