Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all 8245 articles
Browse latest View live

Shaazaam on "Changing Admin Page Content"

0
0

For a plugin I have created an admin menu. Inside this menu I am creating a series of links like so:

<li><a href="<?= $_SERVER["REQUEST_URI"].'?c='.$oClient->Client_ID; ?>"><?= $oClient->FirstName." ".$oClient->LastName; ?></a></li>

Later I use:

if ($_GET["c"]) {...stuff to happen...}

But when I click on the links, I just get a permission error. Any thoughts on why that is happening?


cjones636 on "Showing Pending Post on Frontend."

0
0

I would like to show the number of pending posts on the frontend that can be seen by everyone..

There is currently 22 post awaiting for approval.

does anyone know how to do this?

legion_x on "Insert the_title(); into shortcode"

0
0

I want to insert the current post title into a shortcode but this doesn't seem to work:

echo do_shortcode('[search keywords="'. the_title() .'"]');

Can you help me?

Greetings; chris

qualityc on "Remove ?add-to-cart= from url's and page urls."

nberidze on "Posts before and after date use different permalink"

0
0

How to make permalink appear as they were before until the date when we switched to a different permalink layout?

Posts are registered with Facebook, Google etc with certain permalink. Changing the link mixes up things. Facebook "likes" disappear, Google doesn't recognize correct submission date.

tubaguy50035 on "Does plugins_url work as we should expect?"

0
0

I'm trying to make Migrate DB Pro a must-use plugin which is turning out to be quite the process. WP Migrate DB Pro uses plugins_url to find the URL it should use for some assets it has. It looks like plugins_url will only use WPMU_PLUGIN_URL if the name of the plugin passed (which WP Migrate DB Pro doesn't currently) matches the beginning portion of $mu_plugin_dir. Can somebody explain this logic to me? Why not just check if the plugin name is a directory within $mu_plugin_dir?

In my case, I end up with $plugin containing "wp-migrate-db-pro" (if I alter their code) and $mu_plugin_dir containing "/fullpath/wordpress/company/must-use-plugins". The must-use-plugins directory has all the plugins I want as must-use separated by directory, so "wp-migrate-db-pro" will never be at the beginning of that path.

I can work around this issue using the supplied "plugins_url" filter, but it feels like plugins_url doesn't work as I would expect. Maybe my definition of must-use plugins is wrong...

stevesideas on "Custom CSS for video player & no border"

0
0

Hi there,

First post, so hi there. I'm hoping someone can help me.

I am trying to add the following custom css:

.player .video-wrapper .video {
  top: -30px;
  left: 30px;
      }

.player.no-playbar:not(:-webkit-full-screen) .controls {
    display: none;
      }

      .player.no-playbar.no-fullscreen-api-support .controls {
                display : none;
              }

.rev_slider_wrapper a border:none or frameborder=”0”

I cannot get any of this to work. I'm assuming the code is called too early and gets overwritten by the CSS already being used.

The custom CSS is meant to hide the video player controls in the revolution slider and also remove the border that seems to sit around the video within the slider.

I used inspect element within google chrome to see the code I needed to get things to behave how I want but this custom code doesn't execute.

The player no border commands have never worked even though I found the code on a site that explained this code should remove the vimeo border.

I did paste this code in the theme custom css, revolution slider custom css and lastly the theme junkie custom css seperatly to no avail.

Can anyone help me out ?

Site is at: http://www.visomi.com - if you wait for the animation to appear (3rd slide on main page) you will see what I mean.

Thanks

Steve

madsrh123 on "custom_columns has no data"


UnLambda on "Publish button"

0
0

Hi witch plugin shows publish button next to Edit, Trash and Preview buttons ?
[url=http://firepic.org/images/2015-02/17/09im5wduv9ek.jpg][img]http://firepic.org/images/2015-02/17/6xo1085gohzv.jpg[/img][/url]

Please Add Screenshots on "How to echo the author's name with a link to the author's post"

0
0

I have this piece of code...

echo "<a href='".get_permalink($post_id)."' title='". $p->post_title ."'>" . $p->post_title . "</a> ";

Instead of displaying the post title I'd like it to display the post's author's name (but still link to the post)

Thanks heaps if you can help

Pete

Johnny Bass on "WP Security/Hardening Codes"

0
0

Where can I find a quality site to get the right WordPress hardening codes? firewall, bad bots, hotlinking, etc.?
I want to place them in my WP root htaccess file and not have to use a lot of plugins.

TinTalent on "Custom field (dropdown) how to add country flag?"

0
0

I have a custom field in the user profile where they can select country. Is is possible to display a flag of the selected country in a users list?

I have the images of all countries already.

Any help would be appreciated. Thanks in advance!

malkah on "Responsive theme- change the order of elements in a page"

0
0

Hello members of the forum

I have a WordPress site with a responsive theme.
here is an example of a relevant page:
http://www.kastach.co.il/lorem-ipsum-page

I use a widget of a small search form: widget_mfn_infopay

when I enter an inside page like the above example, from a cellular devise or a small resolution device the responsive theme fires but the CONTENT section is above the widget.
So a user needs to scroll all the way to the bottom of the page to reach the widget area.
how can I change the order of the page only for cellulars, so that the widget is **above** the content?

I will appreciate any help,
Thanks

pipspeak on "allow HTML and special characters in custom meta box"

0
0

I created a custom meta box with a textarea to input text but am wondering if there's a way prevent WordPress from ignoring special characters, breaks, etc. in that custom field when I save the post. For example, if I type a double dash or use the &emdash; code, nothing is done with it when the field is output to a page. It just shows up as a double dash or " &emdash; " in the text. What I want to see is the actual em dash!

If anyone can point me in the right direction, I'd appreciate it.

Hatul666 on "What file should I edit to change the wordpress blog post list"

0
0

What files should I edit to change the structure and content of the posts echoed in the index.php page ?

The ones with circles around them: http://i.stack.imgur.com/ckWGQ.png

I tried editing content.php because it had the <article> tag in the begining but it's not it.. it's the template of the post after you click on it. and not before.

I just want to edit the post previews "boxes", (To add the author picture.. change the elements positionings.. etc') When editing content.php it edits the post itself (for example, after I click on a post, I still see the post edits I made.

Which file is the right one?

**Using wordpress 4.1 Twentyfifteen theme which I deleted all CSS and changes some if it's templates.. created new templates..


OrbiTorbi on "comments for draft posts"

0
0

Hey guys,

im looking for a way to allow comments on draft post (at the backend).
The reason is that my customer need a way to comment draft posts for other people in the company. Is there a special hook or filter?

The only solutions i found was editing the core file (in my opinion very bad idea)

Any ideas?

strattman_design on "Remove date from page Posting"

0
0

I am running the WiderGrid theme with the compositional assistance of VisualComposer. On my "Products" page: http://strattman.com/plasmaproducts/ I want the Page title to be displayed when hovering over the image. I do not, however, want the date to be displayed along with it. I am not sure how to go about asking for help with this, but please help me!

maju17 on "Fatal error: Class not found"

0
0

I try to include a PHP class with
include ('./lib/Stripe.php');

but I'm getting error
Fatal error: Class 'Stripe' not found in charge.php on line 12

And I'm sure Stripe.php exsits in that path. I checked with

if (file_exists('./lib/Stripe.php')) {
    echo 'yes';
}
else{
	echo 'no';
}

thewaytohisheart on "Cialis link on top left of home page"

0
0

Yesterday it was brought to my attention that in many browsers there is a Cialis link just below my header. I am not web savy and have no idea how to remove it! It definitely doesn't bode well for a food blog. My web designer has moved on to a large firm and is no help. Any insight is greatly appreciated!

http://www.thewaytohisheartblog.com

TRIGGAau on "Groups Avatar Suggestion"

0
0

Trying to find a plugin that allows the following.

Provided suggested avatars to groups (user groups in the groups plugin) so i can have a selection of avatars for a user in one group ie member, and another set in the group ie premium member both sets are different. this then allow my subscribers who go into the premium member group to have access to avatars that regular members can have.

Any ideas of a plugin that does this, or if not anyone want to create this plugin (we will pay for your work)

I looked at BP Suggested Avatar plugin but not quite what i need.

Viewing all 8245 articles
Browse latest View live


Latest Images