0
votes
1answer
127 views

Handling an Ajax form submit

I am developing a wordpress plugin that will create a contact form and then submit the details through an ajax request. jQuery.ajax({ type:"post", dataType:"json", ...
0
votes
0answers
25 views

Check for new posts in the loop every x mins/seconds

I'm trying to think of a way to check for new posts in the current loop (e.g. author, or tag) using ajax to give a live blog feel without reloading the whole page. Is it possible to 'fire' the loop ...
0
votes
1answer
125 views

Add scripts on custom post add/edit pages Not Working

im Trying to Add scripts on custom post add/edit pages but Not Working PHP Code ,(it's working and Get Js Code) if(strstr($_SERVER['REQUEST_URI'], 'wp-admin/post-new.php') || ...
0
votes
0answers
48 views

exec JavaScript using add_action when publish_post

How can I execute some Javascript code when an user publish a post I want to do something like this before publish a post: add_action ( 'publish_post', 'custom_links' ); function custom_links() { ...
0
votes
0answers
52 views

Javascript not displaying inside post

Hi I'm trying to add a video that uses javascript inside my post within the editor. I always enter it within the HTML editor with the post and have tried several different plugins but with no luck. ...
0
votes
1answer
1k views

Get content from WordPress posts in Boostrap modal window - Javascript side?

I have a WordPress page with a grid that pull posts. Each post is in a box showing the title + thumbnail and upon clicking on it the content of the post should also appear in the modal (namely, ...
0
votes
0answers
174 views

Save Changes function after table is sorted using jquery

I have a simple table, and the jquery works great for sorting. The fields drags an drops perfectly, and updates then and their. Also of course the data in the fields are saved in a array. The data in ...
3
votes
1answer
2k views

Ajax Load More Posts in Category Page

I am developing a theme where I need to load more posts with ajax. Currently, when I click load more on the category pages, all the posts are loading. The category.php looks like this : ` ...
0
votes
0answers
19 views

Lightbox Post Pop-up on homepage [duplicate]

I've been working on sampression lite theme and what I want to achieve is when a post' thumbnail/read more link on homepage is clicked, a modal will pop-up ( similar to pinterest and this wp theme ...
0
votes
1answer
51 views

Insert specific information to a posts of a predefined category

I want to show some detail information on specific (for e.g. category=3) posts. Therefore I use the following coding: function postinfo_head() { global $post; $script = <<< EOF ...
0
votes
1answer
722 views

Dynamically Add Custom Fields in Posts

I'm building a resume website and I would like to manage the data in custom fields. For examples I would have multiple meta boxes: Education, Work and Competencies In Work I can have multiple ...
0
votes
2answers
254 views

Wordpress as CMS: How to manage/handle images assigned to a post as full-sized background images in a slideshow?

I wonder if Wordpress is the best CMS or solution for what I wannt to do? I need to find some way to upload images to a post that I can loop as background images. Just like I can upload multiple ...
0
votes
1answer
990 views

Using the loop to set locations for all posts on a single google map

Firstly, hi all! I am new to worpress stackexchange. I have been trying to build my own google map to show the location of all my posts. But I don't seem to be able to get the markers to display on ...
2
votes
3answers
758 views

Add javascript when post is published

I am trying to add javascript when a post has been published so that it's more noticable for my user but I can't figure out what to use. I tryed with publish_post and save_post, but it doesn't work ...
0
votes
1answer
1k views

Insert JavaScript in a blog post or a new page?

I want to insert some JavaScript into my post. Actually those are some small apps made in JavaScript. Please let me know how to insert the JavaScript into the post ?
1
vote
2answers
273 views

Injecting JavaScript into a Post with WP3.x

I have a client who is trying to inject some JS directly into a post using the web interface. The script is stripped out on the live site. I am unable to replicate this behavior on a local ...
2
votes
1answer
289 views

Want to have the Post editor remembering the last editing position

As you probably know the WordPress theme editor remembers its last editing position, but I want my post editor to do the same (it jumps to the top if you save a post/page).... Any tips/hacks how to ...