0
votes
0answers
6 views

How to prevent page re-sizing for mobile browsers

I want to prevent my page resizing for mobile browsers, How can I achieve this? My style.css is added below. */ /*---------------------------------------------------------------------------------*/ ...
0
votes
0answers
5 views

WordPress the_content Page Load

I am creating a Quiz for WordPress in which it replaced the WordPress post content with a Quiz if you have enabled it. There are a total of 5 questions per post and to proceed further you need to ...
0
votes
0answers
6 views

How does one load style.css into a theme?

I've looked up the codex, some tutorials and they talk about adding custom css, but I couldn't find where do I add the style.css? I did this, and still it won't have any effect. /** * Proper way to ...
0
votes
0answers
3 views

dbDelta not installing database

I'm not sure why this isn't running. When I output dbDelta it says that it created the table, but it doesn't. I think my SQL is valid. Taking everything out between id and UNIQUE KEY results in the ...
0
votes
1answer
8 views

Custom post type pagination 404

I have a custom post type named episodes_listing and a custom taxonomy named episodes_category. My goal was to have pages like domain.com/episodes/season-one. This works great, and if I have a ...
0
votes
0answers
6 views

Delete attachment script

I have script, but half work. Not delete attachment. I thinnk this line is wrong: jQuery(".post-"wp_delete_attachment).remove(); The script: function cs_delete_directory_post(admin_url, post_id){ ...
0
votes
0answers
2 views

Outputting links to child pages on home page

I am outputting links to all child pages of my home page on this very home page through the following function - function wpb_list_child_pages() { global $post; if ( is_page() && ...
1
vote
1answer
10 views

How to add custom content (text/image) at start of content (IN content ie the same line)

I would like to add some text or image at the start of each post (in a given post layout). I have found numerous ways to implement this before the content starts ie atop the content (of course, I ...
0
votes
0answers
9 views

Display taxonomy title in my loop?

I'm using a tab to display my taxonomy, I would like to be able to display a specific taxonomy (for example: sectors) from my Custom post type. But my code doesnt seem to work . . .If any body has ...
0
votes
0answers
5 views

Buddypress - how to display user role on profile page?

Hi: n00b with Buddypress, and not very experienced w/PHP hacks either. I have a staging site where the user is prompted to choose a role (Musician or Venue) during registration. This goes well, but ...
0
votes
0answers
6 views

Problem with Query on Taxonomy

I have a CPT (homepage) and a taxonomy for this CPT that has some fields (about, services ,...) I want to display the posts (and the contents) of each category (of custom taxonomy) in my homepage. but ...
0
votes
1answer
11 views

How to get a php variable in functions.php and echo it in theme template inside a javascript

) I'm working in a WordPress template, and I try to echo the variable "citation_string_to_js" into the javascript in my theme, but it output it empty ! This is the code i use in Function.php : ...
0
votes
0answers
7 views

Inserting code into a page just shows raw HTML

I'm trying to insert a youtube playlist into a page using the following code <iframe width="853" heigh![t="480" ...
0
votes
1answer
7 views

Options page: values don't show up in dashboard

Following this tutorial (same code as that one) I created an options page that works well, I can retrieve option values from my templates. However when visting the option page in the dashboard, the ...
0
votes
0answers
9 views

Displaying WP Gallery images on the front page from a post

The following code works great if you're fetching a gallery on the same page. (much thanks to @Jan Beck for this code -- working with alt/title for WP Gallery shortcode ) But I am trying to get ...
0
votes
0answers
8 views

Custom post type clean url

I'm trying to create clean url's for my custom post type, but I can't seem to figure out how to make this work. First I followed the Wordpress codex using publicly_queryable and query_var in my ...
0
votes
0answers
8 views

Split gallery using <!--nextpage-->

I usually split my long posts of photos when there are more than 10 photos in one post. The problem is that since a few days ago, I am using galleries and I can't manually add the ...
0
votes
0answers
17 views

Get individual and total social share count (Facebook, Twitter, Google+. Pinterest)

I want to change my original setup because it's so old-fashioned and boring: That's why: I want a code snippet that pulls out the total number of shares for the four services I'm using. I tried ...
0
votes
0answers
11 views

phpexcel function not passing variables

Hello i'm at a lose here guys i've setup phpexcel in a wp_list_table plugin i'm making. and 1 + 1 = 3....... i've pasted my function below. when pressing submit my browser downloads a .xls file ...
0
votes
0answers
7 views

Set widget class & page assignment in theme options

Is there a way to list all widgets by the sidebar in the backend eg in a theme option panl to set a class and the assignment to pages? Like this... I use for theme options redux framework. i hope ...
0
votes
0answers
10 views

How to update premium themes?

I have a question about premium themes in general, not a specific one. When you need to update a premium theme, a lot of websites suggest that you deactivate and delete your existing copy of the ...
0
votes
0answers
10 views

How to fetch custom post type data with ajax?

I want to fetch custom post type data with ajax. For example I have a custom post type eBook. with an ajax call i want to show all Catagories of ebook. When one click on a catagory like Science then ...
0
votes
0answers
10 views

How to register custom post types like ebook and taxonomies with code?

There are more than 10 plugins to create custom post types and taxonomies. But one problem to use that is if accidentally plugin deleted, all works related to that plugin will be deleted.So I want to ...
0
votes
2answers
14 views

How to edit page content after downloading the site files

I am new to WordPress and I've built a simple site. After that, I downloaded all the files of my site by Filezilla. May I ask how to change page content? Which folder is the page contents being ...
0
votes
1answer
14 views

wp_footer hook not working inside a class if not single

I putted a function inside a class and then called it using add_action and the wp_footer hook, like shown below. class mwdes_general { public function __construct() { add_action( 'wp_footer', ...
0
votes
0answers
3 views

Posts 2 Posts Plugin - When saving connection, can it also set the connected post as draft and/or add taxonomy?

I have two posts types, Artwork and Return. What I want to be doing is when a single Artwork or multiple Artworks (from post type 'Artwork') gets attached to a single return (from Post type ...
0
votes
1answer
15 views

pre_get_posts with get_posts

So in the template I've multiple featured posts and sliders and 2 default loops. I use get_posts for everything except default loops (obviously). Now the issue I'm having is excluding get_posts ...
0
votes
1answer
14 views

Member Site - Always Sends Me Back To Login

I set up a simple site about a year ago for a client that uses a modified Twenty Fourteen theme to run a members only site. You can see the site here. She wanted the site to be completely restricted ...
0
votes
1answer
15 views

Changing post per page causing 404 for pagination. Need a redirect htaccess rule

i changed my wp theme and i changed the "post per page" wp setting on "reading"now because i want to display more posts on the archives pages. i m using pagination on the archives so a lot of pages ...
-3
votes
0answers
15 views

Want category pages to show post links without any except below

I have several categories on my website. I want that when a user lands on a category page. He or she should see only the links to the posts in that category without any page description / excerpt ...
0
votes
2answers
17 views

How do I map two domains to the same wordpress installation?

I originally have the website working with: (example) www.domainoriginal.com But I want to have another domain (www.domainsecond.com) also use the same Wordpress installation. I have changed the A ...
-1
votes
1answer
14 views

Installing non-standard fonts

I've followed instructions online to install non-standard fonts, uploading the font.ttf file to my server and adding this to the styles.css in my child theme: @font-face { font-family: UtopiaStd; ...
1
vote
1answer
13 views

Can't trigger an AJAX function with a submit button in the dashboard

I'm writing a WordPress plugin. My plugin has forms that post data to other pages generated by my plugin within the WordPress dashboard. I am trying to create an AJAX function that is triggered when ...
0
votes
1answer
13 views

bbPress - possible to limit user access to their own thread?

I've never used bbPress before and can't find an answer to this. I want to have a forum where members can only see topics or threads they've started and nobody elses. Is this possible? The idea is ...
0
votes
1answer
17 views

Wordpress function only executes once

I am trying to create a redirect for my authors so that when they login (and access the admin area) they are directed to the posts page instead of the Wordpress dashboard. I found a function that ...
0
votes
1answer
12 views

Scrape a webpage for image and add it to post

I was wondering if there was a way to scrape an external webpage for its first/best image and add it to a new post in Wordpress. This seems like it would not be too complicated, but I can't seem to ...
0
votes
0answers
5 views

Post expire by gravity fields

I'm using gravity forms to let users publish some content from front-end. But I need to let then set expiration date. So I've installed Content Scheduler and Post Expirator plugins, because plugin's ...
0
votes
0answers
13 views

I am trying to add a mode rewerite rule that seems to fail

I am trying to redirect everything from /app/.... to a certain page Will use that later for angular js. This is what i came up with : add_rewrite_rule('/app/.*', 'index.php?page_id=11', 'top'); ...
0
votes
1answer
18 views

Wp_head and wp_footer vs wp_enqueue_script javascript files?

I'm converting a bootstrap html website into Wordpress. Now, all recommend using wp_enqueue_script() for registering javascript files. i.e. function themeslug_enqueue_script() { ...
0
votes
0answers
24 views

image_send_to_editor filter - Unwanted paragraphs and line breaks

I'm using image_send_to_editor to filter the output the images that are inserted to my posts. The filter works perfect except for when I'm updating/saving the post. A new paragraph with a line break ...
-2
votes
0answers
11 views

Page Layout Problem

So I am just finishing off the layout of a website preparing it for later development and I am struggling to code my Wordpress front page. The trouble is that the website looks good but after the ...
0
votes
0answers
12 views

Version 3.1.3 to 4.2.2: Exporting old DB and importing new User/Admin credentials

Live site is hosted at GoDaddy and was done years ago. Version 3.1.3. My plan is to setup a fresh install of the latest on my desktop with MAMP and get that one-to-one as to the theme/functionality ...
0
votes
1answer
11 views

Customize option - add two image uploader under same section

To add upload option, i added this code on function page: add_action( 'customize_register', 'custom_logo_uploader' ); function custom_logo_uploader($wp_customize) { ...
0
votes
1answer
12 views

Reason action hook won't work with update_post_meta from frontend form? Alternative?

The code below works when I am inserting a post/using add_post_meta when submitting a form. The page refresh is flawless (see How can I fix a slow redirect after form submit from frontend (no ...
-1
votes
1answer
22 views

Help with responsive theme styling issue

I'm using a template that has been working fine but have discovered that once the screen size goes over 1200 pixels the images fall out of their grid arrangement. I can't see where this issue lies in ...
0
votes
0answers
6 views

Get post attached in sequence

I'm trying to do a reader, that will take images that are attached to the post.Kinda like a comic book reader, which has a button to the next image. However only saw snippets that show to catch the ...
0
votes
1answer
16 views

Remove Category from Menu link

I am new to word press and want to remove category from menu link. Example: When i click Entertainment page redirect to http://khabarchar.com/category/entertainment/ I want to remove category from ...
0
votes
1answer
12 views

How can I fix a slow redirect after form submit from frontend (no plugin)?

Below is the code I'm using for my short-coded form and to add the post. Here's a basic overview of the problem I'm trying to remedy: -This form is displayed on the page at /addmember/ -On this ...
1
vote
1answer
30 views

Check for dependent plugin and if false dont activate plugin

I am creating a plugin for WordPress and this plugin depends on another plugin with a specific version. If I enable my plugin without dependent plugin there are fatal error. Is there a way to check ...
1
vote
1answer
13 views

Hook an action when a transient is deleted ? Can't get it to work!

I'm working on a plugin, and it caches a remote page when requested. The file is created with tempnam(). I save the path of that cached file in a transient, using the transient API. Once the ...

15 30 50 per page