Skip to content

Instantly share code, notes, and snippets.

@mertcanaltin
mertcanaltin / wp_get_post.php
Created August 8, 2019 17:56
wordpress tüm yazıları resimleriyle çeker
<?php if(function_exists('rps_show')) echorps_show(); ?>
<?php query_posts('showposts=15'); ?>
<?php while (have_posts()) : the_post(); ?>
<ul>
<li>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<?php if(has_post_thumbnail()) { the_post_thumbnail(); }
elseif( $thumbnail = get_post_meta($post->ID, 'resim', true) ){ ?>
<div class="padding150_0">
@jakebellacera
jakebellacera / ajax-send.js
Created February 22, 2011 19:03
JQuery validate form that submits via AJAX
/*
ajax-send.js - copyright Jake Bellacera (http://jakebellacera.com)
This script uses JQuery & JQuery Validate (https://github.com/jzaefferer/jquery-validation)
For this example, we will have a form named '#ajaxform', you can of course change this to whatever you'd like.
*/
$(function(){
$('#submitbutton').click(function() {